You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-08-11 02:43:02 +03: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:
@@ -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
|
||||
|
Reference in New Issue
Block a user