Skip to content

Commit 1d55dc3

Browse files
shikharbhardwajfurkansahin
authored andcommitted
Add pg_wal_archive_status query for WAL monitoring
Added pg_wal_archive_status query to monitor WAL segments.
1 parent 605c538 commit 1d55dc3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

common/assets/postgres_exporter_queries.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,10 @@ pg_stat_database_conflicts:
166166
- confl_active_logicalslot:
167167
usage: "COUNTER"
168168
description: "Total queries canceled due to active logical replication slots across all databases (PG 14+)"
169+
170+
pg_wal_archive_status:
171+
query: "SELECT get_wal_ready_count() AS ready_count"
172+
metrics:
173+
- ready_count:
174+
usage: "GAUGE"
175+
description: "Number of WAL segments ready to be archived (.ready files)"

0 commit comments

Comments
 (0)