Skip to content
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

Template and allowconn discovery #297

Conversation

alexissellier
Copy link
Contributor

Currently when using the option auto-discover-databases, templates and databases that does not allow connections are returned in the result leading to errors when the exporter try to connect to them.

This PR aims to get ride of them by adding a filter in the request used by the option.

The fields datallowconn and datistemplate are presented in the PG version supporter by the exporter so it do not include breaking changes

@coveralls
Copy link

coveralls commented Aug 7, 2019

Coverage Status

Coverage remained the same at 58.172% when pulling c1bc236 on AlexisSellier:template-and-allowconn-discovery into c768e64 on wrouesnel:master.

@wrouesnel wrouesnel merged commit 1ab8d2b into prometheus-community:master Aug 12, 2019
@alexissellier alexissellier deleted the template-and-allowconn-discovery branch August 12, 2019 07:38
ritbl referenced this pull request in heniek/postgres_exporter Mar 19, 2023
…ercona#297)

* Discover only databases that are not templates and allow connections

* Update readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants