mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-04-08 02:01:23 +00:00
WAL functions cannot be executed in standby servers
Signed-off-by: Francisco Miguel Biete Banon <fbiete@gmail.com>
This commit is contained in:
parent
5890879126
commit
955a978e55
@ -82,6 +82,7 @@ var queryOverrides = map[string][]OverrideQuery{
|
||||
`
|
||||
SELECT slot_name, database, active, pg_xlog_location_diff(pg_current_xlog_location(), restart_lsn)
|
||||
FROM pg_replication_slots
|
||||
WHERE pg_is_in_recovery() = False
|
||||
`,
|
||||
},
|
||||
{
|
||||
@ -89,6 +90,7 @@ var queryOverrides = map[string][]OverrideQuery{
|
||||
`
|
||||
SELECT slot_name, database, active, pg_wal_lsn_diff(pg_current_wal_lsn(), restart_lsn)
|
||||
FROM pg_replication_slots
|
||||
WHERE pg_is_in_recovery() = False
|
||||
`,
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user