Skip to content

Commit 48ff00e

Browse files
authored
Merge pull request #330 from percona/PMM-14220
PMM-14220 - parsing error
2 parents 7207c9f + b571e55 commit 48ff00e

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

queries-hr.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff 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

11789
pg_custom_stat_replication:
11890
master: true

0 commit comments

Comments
 (0)