You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pod-metrics.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,17 +67,17 @@ For example:
67
67
68
68
* For Pods in `Terminating` state: `count(kube_pod_deletion_timestamp) by (namespace, pod) * count(kube_pod_status_reason{reason="NodeLost"} == 0) by (namespace, pod)`
69
69
70
-
Here is an example of a Prometheus rule that can be used to alert on a Pod that has been in the `Terminated` state for more than `5m`.
70
+
Here is an example of a Prometheus rule that can be used to alert on a Pod that has been in the `Terminating` state for more than `5m`.
71
71
72
72
```yaml
73
73
groups:
74
74
- name: Pod state
75
75
rules:
76
-
- alert: PodsBlockInTerminatingState
76
+
- alert: PodsBlockedInTerminatingState
77
77
expr: count(kube_pod_deletion_timestamp) by (namespace, pod) * count(kube_pod_status_reason{reason="NodeLost"} == 0) by (namespace, pod) > 0
78
78
for: 5m
79
79
labels:
80
80
severity: page
81
81
annotations:
82
-
summary: Pod {{$labels.namespace}}/{{$labels.pod}} block in Terminating state.
82
+
summary: Pod {{$labels.namespace}}/{{$labels.pod}} blocked in Terminating state.
0 commit comments