- name: database
rules:
- alert: postgres replication delay
- expr: pg_replication_lag > 30
+ expr: pg_replication_lag_seconds > 30
for: 15m
labels:
alertgroup: database
labels:
alertgroup: "{{ $labels.instance }}"
- alert: postgresql replication delay
- expr: pg_replication_lag > 30
+ expr: pg_replication_lag_seconds > 30
for: 15m
labels:
alertgroup: "{{ $labels.instance }}"