Files
helm-charts/charts/postgres-cluster/prometheus_rules/cluster-pg_replication-warning.yaml
Alex Lebens 9a83d9bc59
All checks were successful
lint-and-test / lint-helm (push) Successful in 8s
release-charts-postgres-cluster / release (push) Successful in 26s
renovate / renovate (push) Successful in 30s
lint-and-test / chart-testing (push) Successful in 33s
apply namespace fix for alert
2025-12-20 18:40:22 -06:00

16 lines
449 B
YAML

{{- $alert := "CNPGClusterPGReplicationWarning" -}}
{{- if not (has $alert .excludeRules) -}}
alert: {{ $alert }}
annotations:
summary: CNPG Cluster standby is lagging behind the primary.
description: |-
Standby is lagging behind by over 300 seconds (5 minutes)
expr: |
cnpg_pg_replication_lag{namespace="{{ .namespace }}"} > 300
for: 1m
labels:
severity: warning
namespace: {{ .namespace }}
cnpg_cluster: {{ .cluster }}
{{- end -}}