diff --git a/cmd/postgres_exporter/queries.go b/cmd/postgres_exporter/queries.go index 302d24d78..8338c0338 100644 --- a/cmd/postgres_exporter/queries.go +++ b/cmd/postgres_exporter/queries.go @@ -95,6 +95,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 `, }, { @@ -102,6 +103,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 `, }, },