v-m/alerts: Add alerts for PostgreSQL WAL archiver
parent
ee3e078b20
commit
78651eb5f8
|
@ -89,6 +89,24 @@ groups:
|
||||||
- ignoring (instance) group_right (scope) (patroni_xlog_replayed_location != 0)
|
- ignoring (instance) group_right (scope) (patroni_xlog_replayed_location != 0)
|
||||||
> 10240
|
> 10240
|
||||||
for: 10m
|
for: 10m
|
||||||
|
- alert: WAL archive process failed
|
||||||
|
expr: >-
|
||||||
|
pg_stat_archiver_failed_count > 0
|
||||||
|
annotations:
|
||||||
|
summary: The archiver process failed for one or more WAL segments
|
||||||
|
description: >-
|
||||||
|
Check the WAL segment archiver configuration and confirm that WAL
|
||||||
|
segments are being backed up correctly.
|
||||||
|
- alert: No recent WAL archives
|
||||||
|
expr: >-
|
||||||
|
pg_stat_archiver_last_archive_age > 3600
|
||||||
|
annotations:
|
||||||
|
summary: The last successful WAL segment backup was over 1h ago
|
||||||
|
description: >-
|
||||||
|
The WAL archiver process has not run successfully for over an hour.
|
||||||
|
Ensure the WAL backup process is configured correctly and the backup
|
||||||
|
target is online and healthy.
|
||||||
|
|
||||||
|
|
||||||
- name: Temperature
|
- name: Temperature
|
||||||
rules:
|
rules:
|
||||||
|
|
Loading…
Reference in New Issue