Skip to content

Commit 9bd81af

Browse files
authored
Update kubelet.libsonnet
update KubeNodeEviction query
1 parent 8e5b1bc commit 9bd81af

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

alerts/kubelet.libsonnet

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,12 @@ local utils = import '../lib/utils.libsonnet';
127127
{
128128
alert: 'KubeNodeEviction',
129129
expr: |||
130-
sum(rate(kubelet_evictions{%(kubeletSelector)s}[15m])) by(%(clusterLabel)s, eviction_signal, node) > %(KubeNodeEvictionRateThreshold)s
130+
sum(rate(kubelet_evictions{%(kubeletSelector)s}[15m])) by(%(clusterLabel)s, eviction_signal, instance)
131+
* on (%(clusterLabel)s, instance) group_left(node)
132+
max by (%(clusterLabel)s, instance, node) (
133+
kubelet_node_name{%(kubeletSelector)s}
134+
)
135+
> %(KubeNodeEvictionRateThreshold)s
131136
||| % $._config,
132137
labels: {
133138
severity: 'info',

0 commit comments

Comments
 (0)