Skip to content

Commit

Permalink
fix(cluster): Correct CNPGClusterOffline rule description (cloudnativ…
Browse files Browse the repository at this point in the history
…e-pg#429)

Use `namespace/cluster` instead of `labels.job` which is not returned in
the expression.

Fixes: cloudnative-pg#428

Signed-off-by: Mathieu Masse <[email protected]>
  • Loading branch information
mymasse authored and hapeho committed Dec 18, 2024
1 parent 254f99a commit d0d1075
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 d0d1075

Please sign in to comment.