Skip to content

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