Skip to content

Commit

Permalink
fix(cluster): correct CNPGClusterOffline rule description
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 committed Nov 7, 2024
1 parent 3c5dd5d commit b80e29f
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 b80e29f

Please sign in to comment.