Skip to content

Commit 7eba06b

Browse files
committed
PMM-7344 Run uptime custom query only on master db.
1 parent 90931ff commit 7eba06b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

queries-postgres-uptime.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pg_postmaster_uptime:
22
query: "select extract(epoch from current_timestamp - pg_postmaster_start_time()) as seconds"
3+
master: true
34
metrics:
45
- seconds:
56
usage: "GAUGE"

0 commit comments

Comments
 (0)