Skip to content

Commit

Permalink
fix(alerts): use sum by instance max for 'KubeAggregatedAPIErrors' - …
Browse files Browse the repository at this point in the history
…adjust description

Signed-off-by: Sebastian Gaiser <sebastiangaiser@users.noreply.github.com>
  • Loading branch information
sebastiangaiser committed Dec 9, 2024
1 parent 3942941 commit 7e839b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion alerts/kube_apiserver.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ local utils = import '../lib/utils.libsonnet';
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%s.' % [
(utils.ifShowMultiCluster($._config, ' on cluster {{ $labels.%(clusterLabel)s }}' % $._config),
],
summary: 'Kubernetes aggregated API has reported errors.',
},
},
Expand Down

0 comments on commit 7e839b2

Please sign in to comment.