Allow configuring multiple targets for the exporter v0.40.0 and later.
Which issue this PR fixes
fixes #4052
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.
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]
)