You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-08-09 15:42:47 +03:00
Add sample queries file
This commit is contained in:
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'
|
Reference in New Issue
Block a user