Skip to content

Commit 26381e4

Browse files
authored
Merge branch 'PMM-14260' into PMM-14220
2 parents b7665b0 + 638ba57 commit 26381e4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

queries-hr.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
pg_custom_replication_slots:
2+
master: true
23
query: |
34
SELECT
45
slot_name,
@@ -29,6 +30,7 @@ pg_custom_replication_slots:
2930
description: "Confirmed flush LSN in bytes for the replication slot."
3031

3132
pg_custom_stat_wal_receiver:
33+
master: true
3234
query: |
3335
SELECT
3436
status,
@@ -72,8 +74,8 @@ pg_custom_stat_wal_receiver:
7274

7375

7476
pg_custom_database_size_custom:
77+
master: true
7578
query: "SELECT pg_database.datname, pg_database_size(pg_database.datname) as bytes FROM pg_database"
76-
master: false
7779
cache_seconds: 30
7880
metrics:
7981
- datname:
@@ -85,6 +87,7 @@ pg_custom_database_size_custom:
8587

8688

8789
pg_custom_stat_replication:
90+
master: true
8891
query: |
8992
SELECT
9093
pid,
@@ -139,6 +142,7 @@ pg_custom_stat_replication:
139142
description: "Synchronization state (e.g., async, sync)."
140143

141144
pg_custom_stat_activity_walsender:
145+
master: true
142146
query: |
143147
SELECT
144148
pid,
@@ -170,14 +174,15 @@ pg_custom_stat_activity_walsender:
170174
description: "Current state of the WAL sender process"
171175

172176
pg_custom_stat_subscription:
177+
master: true
173178
query: "SELECT subid, subname, pid, received_lsn, last_msg_send_time, last_msg_receipt_time FROM pg_stat_subscription;"
174179
metrics:
175180
- subid:
176181
usage: "LABEL"
177182
description: "Subscription ID"
178183
- subname:
179184
usage: "LABEL"
180-
description: "Subscription Name"
185+
description: "Subscription Name"
181186
- pid:
182187
usage: "GAUGE"
183188
description: "Process ID of subscription worker"
@@ -192,6 +197,7 @@ pg_custom_stat_subscription:
192197
description: "Last message receipt time"
193198

194199
pg_custom_publication:
200+
master: true
195201
query: "SELECT pubname, puballtables, pubinsert, pubupdate, pubdelete FROM pg_publication;"
196202
metrics:
197203
- pubname:

0 commit comments

Comments
 (0)