-
Notifications
You must be signed in to change notification settings - Fork 774
fix parsing include databases #521
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
fix parsing include databases #521
Conversation
Signed-off-by: Paul van der Linden <[email protected]>
f8a71d9
to
ffa6782
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable, LGTM.
Should we add some tests for this? |
It probably should have some tests. I haven't had the time yet to check how the testing works, or how to setup some databases (as the current tests don't do that just yet). |
@SuperQ Are there any documentation on how to run the integration tests locally? |
Sorry, I don't know about either question. I'm not an expert in PG nor this exporter's codebase. It's an adopted project, not something from the core Prometheus team. |
Signed-off-by: Paul van der Linden <[email protected]>
7198ef1
to
bc97291
Compare
I have added a basic integration test for this, and basic instructions for running the tests. It might need improvement, but it solves the current bug and adds a very simple test for it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thanks! This is great.
…to-discovery fix parsing include databases
The introduction of the include databases flag disables the auto discovery flag completely, this PR will fix that.