From 5272882584993ce2e29355ec62558742a76c7165 Mon Sep 17 00:00:00 2001 From: Zadkiel Aharonian Date: Fri, 27 Jan 2023 11:22:52 +0100 Subject: [PATCH] fix: revert failed pods marked as NotReady revert failed pod marked as NotReady --- alerts/apps_alerts.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alerts/apps_alerts.libsonnet b/alerts/apps_alerts.libsonnet index 65c8349c3..bfe7562a1 100644 --- a/alerts/apps_alerts.libsonnet +++ b/alerts/apps_alerts.libsonnet @@ -33,7 +33,7 @@ expr: ||| sum by (namespace, pod, %(clusterLabel)s) ( max by(namespace, pod, %(clusterLabel)s) ( - kube_pod_status_phase{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s, phase=~"Pending|Unknown|Failed"} + kube_pod_status_phase{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s, phase=~"Pending|Unknown"} ) * on(namespace, pod, %(clusterLabel)s) group_left(owner_kind) topk by(namespace, pod, %(clusterLabel)s) ( 1, max by(namespace, pod, owner_kind, %(clusterLabel)s) (kube_pod_owner{owner_kind!="Job"}) )