fix(rule): fixing KubernetesPodNotHealthy (#215 #253) (#263)

This commit is contained in:
MatthieuFin 2022-12-04 23:08:24 +01:00 committed by GitHub
parent 8a31e4a4be
commit a5f32a0fab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1692,8 +1692,9 @@ groups:
for: 2m
- name: Kubernetes Pod not healthy
description: Pod has been in a non-ready state for longer than 15 minutes.
query: 'min_over_time(sum by (namespace, pod) (kube_pod_status_phase{phase=~"Pending|Unknown|Failed"})[15m:1m]) > 0'
query: 'sum by (namespace, pod) (kube_pod_status_phase{phase=~"Pending|Unknown|Failed"}) > 0'
severity: critical
for: 15m
- name: Kubernetes pod crash looping
description: Pod {{ $labels.pod }} is crash looping
query: 'increase(kube_pod_container_status_restarts_total[1m]) > 3'