{{- $alert := "CNPGClusterReplicaFailingReplicationWarning" -}} {{- if not (has $alert .excludeRules) -}} alert: {{ $alert }} annotations: summary: CNPG Cluster has a replica is failing to replicate. description: |- Replica {{`{{`}} $labels.pod {{`}}`}} is failing to replicate expr: | cnpg_pg_replication_in_recovery > cnpg_pg_replication_is_wal_receiver_up for: 1m labels: severity: warning namespace: {{ .namespace }} cnpg_cluster: {{ .cluster }} {{- end -}}