mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-04-08 10:11:26 +00:00
Revert PR #23 which broke replication stats.
This PR is not general to all versions of postgres, and in the worst case meant the query returned nothing. Closes #30 and shows we need a test case.
This commit is contained in:
parent
6f2f9890f7
commit
c00d3fb6e7
@ -227,8 +227,7 @@ var queryOverrides = map[string]string{
|
||||
ON tmp.mode=tmp2.mode and pg_database.oid = tmp2.database ORDER BY 1`,
|
||||
|
||||
"pg_stat_replication": `
|
||||
SELECT *, pg_current_xlog_location(), pg_xlog_location_diff(pg_current_xlog_location(), replay_location)::float FROM pg_stat_replication
|
||||
INNER JOIN pg_replication_slots ON pg_stat_replication.pid=pg_replication_slots.active_pid`,
|
||||
SELECT *, pg_current_xlog_location(), pg_xlog_location_diff(pg_current_xlog_location(), replay_location)::float FROM pg_stat_replication`,
|
||||
|
||||
"pg_stat_activity": `
|
||||
SELECT
|
||||
|
Loading…
Reference in New Issue
Block a user