-
Notifications
You must be signed in to change notification settings - Fork 770
Option to not query replication stats #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
…for querying SHOW variables - this can generally be done by querying pg_settings instead. Fixes prometheus-community#29 and prometheus-community#30 upstream.
This is indeed a problem. The main issue is there's now way for the exporter to know if replication should be enabled or not. I think the fix is just going to be a command line flag "expect-replication" which raises this to the level of error and ignores it otherwise (since I don't want to break backwards compatibility for people using it this way already). |
i had issue with running the exporter with a aurora rds database (which is compatible with postgres 9.6.8). This what you'll get in the exporter logs :
Seems like aurora doesn't expose replication information and honestly we don't really care for those metrics anyway but we do want the other metrics. So i checked out the code and remove everything related Since this might happen to someone else i though it would be useful to post this here. I could do a proper PR for this if you are interested in this behavior. |
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:
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.
The text was updated successfully, but these errors were encountered: