mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-04-11 03:31:26 +00:00
Add sample queries file
This commit is contained in:
parent
6565c98ad5
commit
1d383291eb
6
queries.yaml
Normal file
6
queries.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
pg_replication:
|
||||
query: 'SELECT EXTRACT(EPOCH FROM (now() - pg_last_xact_replay_timestamp()))::INT as lag'
|
||||
metrics:
|
||||
- lag:
|
||||
usage: 'GAUGE'
|
||||
description: 'Replication lag behind master in seconds'
|
Loading…
Reference in New Issue
Block a user