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

[prometheus-mongodb-exporter] Support multi-target exporter #4875

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BapRx
Copy link
Contributor

@BapRx BapRx commented Sep 26, 2024

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:

  • generate MONGODB_URI automatically from the target list BUT share the same username/password
  • create a secret manually with the content of MONGODB_URI but also manage the serviceMonitor list separately

I 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

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

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.

[prometheus-mongodb-exporter] Multi Target Support
1 participant