mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-02-09 06:46:50 +00:00
7 lines
217 B
YAML
7 lines
217 B
YAML
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'
|