Skip to content

Commit 1d38329

Browse files
committed
Add sample queries file
1 parent 6565c98 commit 1d38329

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)