From 063971be16fead041719e8dbc3cb45367824e59f Mon Sep 17 00:00:00 2001 From: Mathieu Masse Date: Tue, 29 Oct 2024 08:29:59 -0400 Subject: [PATCH] fix(cluster): correct CNPGClusterOffline rule description 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.