-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy path0650-pg_subrel.yml
More file actions
16 lines (14 loc) · 936 Bytes
/
0650-pg_subrel.yml
File metadata and controls
16 lines (14 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#==============================================================#
# 0650 pg_subrel
#==============================================================#
pg_subrel:
name: pg_subrel
desc: PostgreSQL subscripted relation group by state
query: SELECT CURRENT_CATALOG AS datname, subname, srsubstate::TEXT AS state, count(*) AS count FROM pg_subscription_rel sr LEFT JOIN pg_stat_subscription ss ON sr.srsubid = ss.subid GROUP BY 2, 3;
ttl: 10
min_version: 100000
metrics:
- datname: { usage: LABEL ,description: "Name of the database which publication belonged" }
- subname: { usage: LABEL ,description: "Name of the subscription" }
- state: { usage: LABEL ,description: "State of table in subscription, i=initialize, d=data copy, s=sync, r=ready" }
- count: { usage: GAUGE ,description: "Count of relation in this subscription and corresponding state" }