diff --git a/dist/rules/postgresql/postgres-exporter.yml b/dist/rules/postgresql/postgres-exporter.yml index 67b493c..4514e9a 100644 --- a/dist/rules/postgresql/postgres-exporter.yml +++ b/dist/rules/postgresql/postgres-exporter.yml @@ -122,7 +122,7 @@ groups: description: "Postgres detected deadlocks\n VALUE = {{ $value }}\n LABELS = {{ $labels }}" - alert: PostgresqlUnusedReplicationSlot - expr: 'pg_replication_slots_active == 0' + expr: '(pg_replication_slots_active == 0) and (pg_replication_is_replica == 0)' for: 1m labels: severity: warning