mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-21 17:07:24 +08:00
fix(kubernetes): min_over_time takes a time range as paremeter
This commit is contained in:
parent
329583ac36
commit
2cda73aa3a
1 changed files with 1 additions and 1 deletions
|
|
@ -961,7 +961,7 @@ groups:
|
|||
severity: warning
|
||||
- name: Kubernetes Pod not healthy
|
||||
description: Pod has been in a non-ready state for longer than an hour.
|
||||
query: 'min_over_time(sum by (namespace, pod, env, stage) (kube_pod_status_phase{phase=~"Pending|Unknown|Failed"})[1h]) > 0'
|
||||
query: 'min_over_time(sum by (namespace, pod) (kube_pod_status_phase{phase=~"Pending|Unknown|Failed"})[1h:])'
|
||||
severity: error
|
||||
- name: Kubernetes pod crash looping
|
||||
description: Pod {{ $labels.pod }} is crash looping
|
||||
|
|
|
|||
Loading…
Reference in a new issue