Restrict PostgreSQL_ReplicaStaleXmin to repmgr slots.

parent 70e5ef68
......@@ -184,7 +184,7 @@ groups:
runbook: "troubleshooting/"
title: Unused Replication Slots for {{$labels.fqdn}}
- alert: PostgreSQL_ReplicaStaleXmin
expr: pg_replication_slots_xmin_age > 20000
expr: pg_replication_slots_xmin_age{slot_name =~ '^repmgr_slot_[0-9]+'} > 20000
for: 30m
severity: critical
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment