diff --git a/alerts/resource_alerts.libsonnet b/alerts/resource_alerts.libsonnet index f478ab802..ff4d42b7d 100644 --- a/alerts/resource_alerts.libsonnet +++ b/alerts/resource_alerts.libsonnet @@ -88,6 +88,19 @@ message: 'Namespace {{ $labels.namespace }} is using {{ $value | humanizePercentage }} of its {{ $labels.resource }} quota.', }, }, + { + alert: 'KubeNodeEvictedPods', + expr: ||| + increase(kubelet_evictions{%(kubeStateMetricsSelector)s}[5m]) > 0 + ||| % $._config, + labels: { + severity: 'warning', + }, + annotations: { + message: '{{ $labels.node }} has evicted {{ $value }} pods.', + }, + 'for': '5m', + }, { alert: 'CPUThrottlingHigh', expr: |||