From 04a58536f07f3f4b51799214b6f2964ee21c85f9 Mon Sep 17 00:00:00 2001 From: Stephen Lang Date: Wed, 28 Aug 2024 14:14:42 +0100 Subject: [PATCH] fix: Re-add cluster label to KubeStatefulSetUpdateNotRolledOut --- 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 2c900fcf2..4359b1a77 100644 --- a/alerts/apps_alerts.libsonnet +++ b/alerts/apps_alerts.libsonnet @@ -143,7 +143,7 @@ { expr: ||| ( - max by(namespace, statefulset) ( + max by(namespace, statefulset, job, %(clusterLabel)s) ( kube_statefulset_status_current_revision{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} unless kube_statefulset_status_update_revision{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s}