11pg_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
3132pg_custom_stat_wal_receiver :
33+ master : true
3234 query : |
3335 SELECT
3436 status,
@@ -72,8 +74,8 @@ pg_custom_stat_wal_receiver:
7274
7375
7476pg_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
8789pg_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
141144pg_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
172176pg_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
194199pg_custom_publication :
200+ master : true
195201 query : " SELECT pubname, puballtables, pubinsert, pubupdate, pubdelete FROM pg_publication;"
196202 metrics :
197203 - pubname :
0 commit comments