From fb45e4ff16ca653f9d26889084f46e36cfa2d550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20Mass=C3=A9?= Date: Fri, 8 Nov 2024 07:14:08 -0500 Subject: [PATCH] fix(cluster): Correct CNPGClusterOffline rule description (#429) Use `namespace/cluster` instead of `labels.job` which is not returned in the expression. Fixes: #428 Signed-off-by: Mathieu Masse --- charts/cluster/prometheus_rules/cluster-offline.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/cluster/prometheus_rules/cluster-offline.yaml b/charts/cluster/prometheus_rules/cluster-offline.yaml index aa4dc12ee..4206c02f3 100644 --- a/charts/cluster/prometheus_rules/cluster-offline.yaml +++ b/charts/cluster/prometheus_rules/cluster-offline.yaml @@ -4,7 +4,7 @@ alert: {{ $alert }} annotations: summary: CNPG Cluster has no running instances! description: |- - CloudNativePG Cluster "{{ .labels.job }}" has no ready instances. + CloudNativePG Cluster "{{ .namespace }}/{{ .cluster }}" has no ready instances. Having an offline cluster means your applications will not be able to access the database, leading to potential service disruption and/or data loss.