fix: Change the autodiscovery default value to be in sync with the doc #78
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
According to the documentation the option to auto discover all databases is enabled by default, however, it is not.
Performed the following tests:
Service started without specifying PG_EXPORTER_AUTO_DISCOVERY (assumed it is enable):
Service started specifying PG_EXPORTER_AUTO_DISCOVERY=true:
Test were made just to check the which default value was getting for the
PG_EXPORTER_AUTO_DISCOVERYparameter and the default value is set tofalse.Links to documentation where it is marked as the default value:
In order to be in sync with the documentation, this PR change the default value in the code to 'true' for the parameter
PG_EXPORTER_AUTO_DISCOVERYTest environment:
Kubernetes provider: kind (1.30.13)
Postgres Deployment: Zalando's Operator
Postgres Version: 15
pg_exporter version: 1.0.1