-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[prometheus-mongodb-exporter] Support multi-target exporter #4875
[prometheus-mongodb-exporter] Support multi-target exporter #4875
Conversation
177b1df
to
9428fb9
Compare
0001b62
to
c0d1b1a
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.
Thank you, @BapRx, for your PR. Please, see my comments below.
charts/prometheus-mongodb-exporter/templates/servicemonitor.yaml
Outdated
Show resolved
Hide resolved
charts/prometheus-mongodb-exporter/templates/servicemonitor.yaml
Outdated
Show resolved
Hide resolved
Signed-off-by: Baptiste Roux <baptiste.roux@skale-5.com>
c0d1b1a
to
4f647c9
Compare
Signed-off-by: Baptiste Roux <baptiste.roux@skale-5.com>
Hello @zeritti, thank you for your review, I pushed some changes to fix the issues you mentioned. |
Signed-off-by: Baptiste Roux <baptiste.roux@skale-5.com>
Thank you, @BapRx, for your changes. I will still validate the changes over the coming days. As to the chosen use case of a single set of credentials, I am confident that we can start with that. |
Signed-off-by: Baptiste Roux <baptiste.roux@skale-5.com>
A CI values file for |
Signed-off-by: Baptiste Roux <baptiste.roux@skale-5.com>
I see, thank you 🙂 |
…us-community#4875) * feat(mongodb): support multi-target exporter Signed-off-by: Baptiste Roux <baptiste.roux@skale-5.com> * feat(prometheus-mongodb-exporter): apply suggestions Signed-off-by: Baptiste Roux <baptiste.roux@skale-5.com> * chore(prometheus-mongodb-exporter): bump chart version Signed-off-by: Baptiste Roux <baptiste.roux@skale-5.com> * chore(prometheus-mongodb-exporter): add CI multi-target test Signed-off-by: Baptiste Roux <baptiste.roux@skale-5.com> * fix(prometheus-mongodb-exporter): rename CI multi-target test file Signed-off-by: Baptiste Roux <baptiste.roux@skale-5.com> --------- Signed-off-by: Baptiste Roux <baptiste.roux@skale-5.com>
…us-community#4875) * feat(mongodb): support multi-target exporter Signed-off-by: Baptiste Roux <baptiste.roux@skale-5.com> * feat(prometheus-mongodb-exporter): apply suggestions Signed-off-by: Baptiste Roux <baptiste.roux@skale-5.com> * chore(prometheus-mongodb-exporter): bump chart version Signed-off-by: Baptiste Roux <baptiste.roux@skale-5.com> * chore(prometheus-mongodb-exporter): add CI multi-target test Signed-off-by: Baptiste Roux <baptiste.roux@skale-5.com> * fix(prometheus-mongodb-exporter): rename CI multi-target test file Signed-off-by: Baptiste Roux <baptiste.roux@skale-5.com> --------- Signed-off-by: Baptiste Roux <baptiste.roux@skale-5.com>
What this PR does / why we need it
Allow configuring multiple targets for the exporter v0.40.0 and later.
Which issue this PR fixes
Special notes for your reviewer
Until the exporter supports reading passwords from a file, we are limited to choose out of two solutions:
MONGODB_URI
automatically from the target list BUT share the same username/passwordMONGODB_URI
but also manage the serviceMonitor list separatelyI don't really know what's the best solution, open for suggestions! I went for the first solution which matches my use case but if you think the other option is better for most people, we can rethink the logic.
Checklist
[prometheus-couchdb-exporter]
)