diff --git a/cmd/postgres_exporter/queries.go b/cmd/postgres_exporter/queries.go index fa0b5c272..f6f3160e1 100644 --- a/cmd/postgres_exporter/queries.go +++ b/cmd/postgres_exporter/queries.go @@ -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 `, }, },