Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions queries-hr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,26 +83,6 @@ pg_custom_database_size_custom:
usage: "GAUGE"
description: "Disk space used by the database"

pg_custom_replication_wal:
query: |
SELECT
pg_last_wal_receive_lsn() AS received_lsn,
pg_last_wal_replay_lsn() AS replayed_lsn,
pg_current_wal_lsn() AS current_lsn,
pg_current_wal_lsn() - pg_last_wal_replay_lsn() AS lag_bytes;
metrics:
- received_lsn:
usage: "GAUGE"
description: "Last WAL location received by the standby server."
- replayed_lsn:
usage: "GAUGE"
description: "Last WAL location replayed by the standby server."
- current_lsn:
usage: "GAUGE"
description: "Current WAL location on the primary server."
- lag_bytes:
usage: "GAUGE"
description: "Current WAL replication lag in bytes."

pg_custom_stat_replication:
query: |
Expand Down