Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mixins #21

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/azure/prometheusAlerts.json
Original file line number Diff line number Diff line change
Expand Up @@ -518,12 +518,13 @@
},
{
"alert": "KubeAggregatedAPIErrors",
"expr": "sum by(name, namespace, cluster)(increase(aggregator_unavailable_apiservice_total{job=\"kube-apiserver\"}[10m])) > 4",
"expr": "sum by(cluster, instance, name, reason)(increase(aggregator_unavailable_apiservice_total{job=\"kube-apiserver\"}[1m])) > 0",
"for": "10m",
"labels": {
"severity": "warning"
},
"annotations": {
"description": "Kubernetes aggregated API {{ $labels.name }}/{{ $labels.namespace }} has reported errors. It has appeared unavailable {{ $value | humanize }} times averaged over the past 10m.",
"description": "Kubernetes aggregated API {{ $labels.instance }}/{{ $labels.name }} has reported {{ $labels.reason }} errors on cluster {{ $labels.cluster }}.",
"runbook_url": "https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeaggregatedapierrors",
"summary": "Kubernetes aggregated API has reported errors."
}
Expand Down
5 changes: 3 additions & 2 deletions docs/azure/prometheusAlerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,12 @@ groups:
summary: Client certificate is about to expire.
- alert: "KubeAggregatedAPIErrors"
expr: |-
sum by(name, namespace, cluster)(increase(aggregator_unavailable_apiservice_total{job="kube-apiserver"}[10m])) > 4
sum by(cluster, instance, name, reason)(increase(aggregator_unavailable_apiservice_total{job="kube-apiserver"}[1m])) > 0
for: 10m
labels:
severity: warning
annotations:
description: Kubernetes aggregated API {{ $labels.name }}/{{ $labels.namespace }} has reported errors. It has appeared unavailable {{ $value | humanize }} times averaged over the past 10m.
description: Kubernetes aggregated API {{ $labels.instance }}/{{ $labels.name }} has reported {{ $labels.reason }} errors on cluster {{ $labels.cluster }}.
runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeaggregatedapierrors
summary: Kubernetes aggregated API has reported errors.
- alert: "KubeAggregatedAPIDown"
Expand Down
5 changes: 3 additions & 2 deletions docs/default/prometheusAlerts.json
Original file line number Diff line number Diff line change
Expand Up @@ -518,12 +518,13 @@
},
{
"alert": "KubeAggregatedAPIErrors",
"expr": "sum by(name, namespace, cluster)(increase(aggregator_unavailable_apiservice_total{job=\"kube-apiserver\"}[10m])) > 4",
"expr": "sum by(cluster, instance, name, reason)(increase(aggregator_unavailable_apiservice_total{job=\"kube-apiserver\"}[1m])) > 0",
"for": "10m",
"labels": {
"severity": "warning"
},
"annotations": {
"description": "Kubernetes aggregated API {{ $labels.name }}/{{ $labels.namespace }} has reported errors. It has appeared unavailable {{ $value | humanize }} times averaged over the past 10m.",
"description": "Kubernetes aggregated API {{ $labels.instance }}/{{ $labels.name }} has reported {{ $labels.reason }} errors.",
"runbook_url": "https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeaggregatedapierrors",
"summary": "Kubernetes aggregated API has reported errors."
}
Expand Down
5 changes: 3 additions & 2 deletions docs/default/prometheusAlerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,12 @@ groups:
summary: Client certificate is about to expire.
- alert: "KubeAggregatedAPIErrors"
expr: |-
sum by(name, namespace, cluster)(increase(aggregator_unavailable_apiservice_total{job="kube-apiserver"}[10m])) > 4
sum by(cluster, instance, name, reason)(increase(aggregator_unavailable_apiservice_total{job="kube-apiserver"}[1m])) > 0
for: 10m
labels:
severity: warning
annotations:
description: Kubernetes aggregated API {{ $labels.name }}/{{ $labels.namespace }} has reported errors. It has appeared unavailable {{ $value | humanize }} times averaged over the past 10m.
description: Kubernetes aggregated API {{ $labels.instance }}/{{ $labels.name }} has reported {{ $labels.reason }} errors.
runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeaggregatedapierrors
summary: Kubernetes aggregated API has reported errors.
- alert: "KubeAggregatedAPIDown"
Expand Down
5 changes: 3 additions & 2 deletions docs/multicluster/prometheusAlerts.json
Original file line number Diff line number Diff line change
Expand Up @@ -518,12 +518,13 @@
},
{
"alert": "KubeAggregatedAPIErrors",
"expr": "sum by(name, namespace, cluster)(increase(aggregator_unavailable_apiservice_total{job=\"kube-apiserver\"}[10m])) > 4",
"expr": "sum by(cluster, instance, name, reason)(increase(aggregator_unavailable_apiservice_total{job=\"kube-apiserver\"}[1m])) > 0",
"for": "10m",
"labels": {
"severity": "warning"
},
"annotations": {
"description": "Kubernetes aggregated API {{ $labels.name }}/{{ $labels.namespace }} has reported errors. It has appeared unavailable {{ $value | humanize }} times averaged over the past 10m.",
"description": "Kubernetes aggregated API {{ $labels.instance }}/{{ $labels.name }} has reported {{ $labels.reason }} errors on cluster {{ $labels.cluster }}.",
"runbook_url": "https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeaggregatedapierrors",
"summary": "Kubernetes aggregated API has reported errors."
}
Expand Down
5 changes: 3 additions & 2 deletions docs/multicluster/prometheusAlerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,12 @@ groups:
summary: Client certificate is about to expire.
- alert: "KubeAggregatedAPIErrors"
expr: |-
sum by(name, namespace, cluster)(increase(aggregator_unavailable_apiservice_total{job="kube-apiserver"}[10m])) > 4
sum by(cluster, instance, name, reason)(increase(aggregator_unavailable_apiservice_total{job="kube-apiserver"}[1m])) > 0
for: 10m
labels:
severity: warning
annotations:
description: Kubernetes aggregated API {{ $labels.name }}/{{ $labels.namespace }} has reported errors. It has appeared unavailable {{ $value | humanize }} times averaged over the past 10m.
description: Kubernetes aggregated API {{ $labels.instance }}/{{ $labels.name }} has reported {{ $labels.reason }} errors on cluster {{ $labels.cluster }}.
runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeaggregatedapierrors
summary: Kubernetes aggregated API has reported errors.
- alert: "KubeAggregatedAPIDown"
Expand Down
4 changes: 2 additions & 2 deletions jsonnetfile.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"subdir": ""
}
},
"version": "a3fbf21977deb89b7d843eb8371170c011ea6835",
"sum": "57zW2IGJ9zbYd8BI0qe6JkoWTRSMNiBUWC6+YcnEsWo="
"version": "d6ab1a7cd86a7fe687284f81b385ad0a82cbc70e",
"sum": "6Wz4q0u0Sp8r4ywtJOIR8EWArLHJKzO64rjqeku7bY8="
}
],
"legacyImports": false
Expand Down
Loading