Skip to content

Commit 4a14803

Browse files
authored
add pod phase="Failed"
1 parent b8f44bb commit 4a14803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alerts/apps_alerts.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
expr: |||
3434
sum by (namespace, pod, %(clusterLabel)s) (
3535
max by(namespace, pod, %(clusterLabel)s) (
36-
kube_pod_status_phase{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s, phase=~"Pending|Unknown"}
36+
kube_pod_status_phase{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s, phase=~"Pending|Unknown|Failed"}
3737
) * on(namespace, pod, %(clusterLabel)s) group_left(owner_kind) topk by(namespace, pod, %(clusterLabel)s) (
3838
1, max by(namespace, pod, owner_kind, %(clusterLabel)s) (kube_pod_owner{owner_kind!="Job"})
3939
)

0 commit comments

Comments
 (0)