Skip to content

Commit

Permalink
fix(cluster): Correct CNPGClusterOffline rule description (#429)
Browse files Browse the repository at this point in the history
Use `namespace/cluster` instead of `labels.job` which is not returned in
the expression.

Fixes: #428

Signed-off-by: Mathieu Masse <[email protected]>
  • Loading branch information
mymasse authored Nov 8, 2024
1 parent 238f826 commit fb45e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/cluster/prometheus_rules/cluster-offline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fb45e4f

Please sign in to comment.