1
0
Fork 0

v-m/alerts: Add alerts for PostgreSQL WAL archiver

pull/32/head
Dustin 2024-10-17 07:08:28 -05:00
parent ee3e078b20
commit 78651eb5f8
1 changed files with 18 additions and 0 deletions

View File

@ -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: