File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -85,34 +85,6 @@ pg_custom_database_size_custom:
8585 usage : " GAUGE"
8686 description : " Disk space used by the database"
8787
88- pg_custom_replication_wal :
89- master : true
90- query : |
91- SELECT
92- CASE WHEN pg_is_in_recovery() THEN 'replica' ELSE 'primary' END AS node_type,
93- CASE WHEN pg_is_in_recovery() THEN pg_last_wal_receive_lsn() ELSE NULL END AS received_lsn,
94- CASE WHEN pg_is_in_recovery() THEN pg_last_wal_replay_lsn() ELSE NULL END AS replayed_lsn,
95- CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_current_wal_lsn() END AS current_lsn,
96- CASE
97- WHEN pg_is_in_recovery() THEN pg_last_wal_receive_lsn() - pg_last_wal_replay_lsn()
98- ELSE NULL
99- END AS lag_bytes
100- metrics :
101- - node_type :
102- usage : " LABEL"
103- description : " Type of node (primary or replica)."
104- - received_lsn :
105- usage : " GAUGE"
106- description : " Last WAL location received by the standby server (replica only)."
107- - replayed_lsn :
108- usage : " GAUGE"
109- description : " Last WAL location replayed by the standby server (replica only)."
110- - current_lsn :
111- usage : " GAUGE"
112- description : " Current WAL location on the primary server (primary only)."
113- - lag_bytes :
114- usage : " GAUGE"
115- description : " Current WAL replication lag in bytes (replica only)."
11688
11789pg_custom_stat_replication :
11890 master : true
You can’t perform that action at this time.
0 commit comments