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 :
@@ -113,6 +115,7 @@ pg_custom_replication_wal:
113115 description : " Current WAL replication lag in bytes (replica only)."
114116
115117pg_custom_stat_replication :
118+ master : true
116119 query : |
117120 SELECT
118121 pid,
@@ -167,6 +170,7 @@ pg_custom_stat_replication:
167170 description : " Synchronization state (e.g., async, sync)."
168171
169172pg_custom_stat_activity_walsender :
173+ master : true
170174 query : |
171175 SELECT
172176 pid,
@@ -198,14 +202,15 @@ pg_custom_stat_activity_walsender:
198202 description : " Current state of the WAL sender process"
199203
200204pg_custom_stat_subscription :
205+ master : true
201206 query : " SELECT subid, subname, pid, received_lsn, last_msg_send_time, last_msg_receipt_time FROM pg_stat_subscription;"
202207 metrics :
203208 - subid :
204209 usage : " LABEL"
205210 description : " Subscription ID"
206211 - subname :
207212 usage : " LABEL"
208- description : " Subscription Name"
213+ description : " Subscription Name"
209214 - pid :
210215 usage : " GAUGE"
211216 description : " Process ID of subscription worker"
@@ -220,6 +225,7 @@ pg_custom_stat_subscription:
220225 description : " Last message receipt time"
221226
222227pg_custom_publication :
228+ master : true
223229 query : " SELECT pubname, puballtables, pubinsert, pubupdate, pubdelete FROM pg_publication;"
224230 metrics :
225231 - pubname :
0 commit comments