Skip to content

Commit c4893ae

Browse files
authored
fix: KubeletTooManyPods respect clusterLabels (#1023)
1 parent 4e1cecf commit c4893ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

alerts/kubelet.libsonnet

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ local utils = import '../lib/utils.libsonnet';
6161
// We have to ignore this special node in the KubeletTooManyPods alert.
6262
expr: |||
6363
(
64-
max by (cluster, instance) (
64+
max by (%(clusterLabel)s, instance) (
6565
kubelet_running_pods{%(kubeletSelector)s} > 1
6666
)
67-
* on (cluster, instance) group_left(node)
68-
max by (cluster, instance, node) (
67+
* on (%(clusterLabel)s, instance) group_left(node)
68+
max by (%(clusterLabel)s, instance, node) (
6969
kubelet_node_name{%(kubeletSelector)s}
7070
)
7171
)
72-
/ on (cluster, node) group_left()
72+
/ on (%(clusterLabel)s, node) group_left()
7373
max by (%(clusterLabel)s, node) (
7474
kube_node_status_capacity{%(kubeStateMetricsSelector)s, resource="pods"} != 1
7575
) > 0.95

0 commit comments

Comments
 (0)