-
Notifications
You must be signed in to change notification settings - Fork 804
Closed
Description
The databases that I currently monitor do not have replication enabled, so every time Prometheus scrapes the exporter, I get these messages in the logs:
Sep 22 20:23:56 svr03.ocjtech.us postgres[11980]: [2-1] ERROR: relation "pg_replication_slots" does not exist at character 162
Sep 22 20:23:56 svr03.ocjtech.us postgres[11980]: [2-2] STATEMENT:
Sep 22 20:23:56 svr03.ocjtech.us postgres[11980]: [2-3] SELECT *, pg_current_xlog_location(), pg_xlog_location_diff(pg_current_xlog_location(), replay_location)::float FROM pg_stat_replication
Sep 22 20:23:56 svr03.ocjtech.us postgres[11980]: [2-4] INNER JOIN pg_replication_slots ON pg_stat_replication.pid=pg_replication_slots.active_pid
It'd be good if there was a command line switch to turn off these queries, it'd be GREAT if the exporter could determine that replication wasn't in use automatically and not issue these queries.
Metadata
Metadata
Assignees
Labels
No labels