Skip to content

Commit a780a46

Browse files
noushiTomas Haber
authored andcommitted
Add sample queries file
1 parent ed07f8d commit a780a46

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

queries.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pg_replication:
2+
query: 'SELECT EXTRACT(EPOCH FROM (now() - pg_last_xact_replay_timestamp()))::INT as lag'
3+
metrics:
4+
- lag:
5+
usage: 'GAUGE'
6+
description: 'Replication lag behind master in seconds'

0 commit comments

Comments
 (0)