Skip to content

Commit

Permalink
Merge pull request #848 from frederiko/job_selectors
Browse files Browse the repository at this point in the history
Add missing kubeApiserverSelector to kubeAggregateAPI alerts
  • Loading branch information
povilasv committed Jun 7, 2023
2 parents b5c70aa + f91f71a commit 42dfc87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alerts/kube_apiserver.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ local utils = import '../lib/utils.libsonnet';
{
alert: 'KubeAggregatedAPIErrors',
expr: |||
sum by(name, namespace, %(clusterLabel)s)(increase(aggregator_unavailable_apiservice_total[10m])) > 4
sum by(name, namespace, %(clusterLabel)s)(increase(aggregator_unavailable_apiservice_total{%(kubeApiserverSelector)s}[10m])) > 4
||| % $._config,
labels: {
severity: 'warning',
Expand All @@ -90,7 +90,7 @@ local utils = import '../lib/utils.libsonnet';
{
alert: 'KubeAggregatedAPIDown',
expr: |||
(1 - max by(name, namespace, %(clusterLabel)s)(avg_over_time(aggregator_unavailable_apiservice[10m]))) * 100 < 85
(1 - max by(name, namespace, %(clusterLabel)s)(avg_over_time(aggregator_unavailable_apiservice{%(kubeApiserverSelector)s}[10m]))) * 100 < 85
||| % $._config,
'for': '5m',
labels: {
Expand Down

0 comments on commit 42dfc87

Please sign in to comment.