Skip to content

Commit 9fa4330

Browse files
authored
docs(alerting): add sample of ReplicaFailingReplication rule (#2869)
Signed-off-by: Lennart Krauch <[email protected]>
1 parent 646bd8f commit 9fa4330

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

‎docs/src/samples/monitoring/alerts.yaml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,12 @@ groups:
5555
for: 1m
5656
labels:
5757
severity: warning
58+
- alert: ReplicaFailingReplication
59+
annotations:
60+
description: Replica {{ $labels.pod }} is failing to replicate
61+
summary: Checks if the replica is failing to replicate
62+
expr: |-
63+
cnpg_pg_replication_in_recovery > cnpg_pg_replication_is_wal_receiver_up
64+
for: 1m
65+
labels:
66+
severity: warning

‎docs/src/samples/monitoring/prometheusrule.yaml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,12 @@ spec:
6060
for: 1m
6161
labels:
6262
severity: warning
63+
- alert: ReplicaFailingReplication
64+
annotations:
65+
description: Replica {{ $labels.pod }} is failing to replicate
66+
summary: Checks if the replica is failing to replicate
67+
expr: |-
68+
cnpg_pg_replication_in_recovery > cnpg_pg_replication_is_wal_receiver_up
69+
for: 1m
70+
labels:
71+
severity: warning

0 commit comments

Comments
 (0)