mongodb-query-exporter
mongodb-query-exporter copied to clipboard
[Question] Is is possible to use a variable database ?
I'm working on setting up the exporter for our project.
We have autodeployed dev environnements with one database for each environment, is it possible to make the database
value inside the config depend on a variable environment ?
For example:
aggregations:
- database: ${DB}
collection: collection_x
...
This is not supported but sounds like something nice to implement.
This is not supported but sounds like something nice to implement. Ok, thanks for the info.
In my usecase, I just thought about a possiblity: instead of specifying the config directly in Helm values, I'll create a configMap with a Helm template and use that for the exporter, that should do the trick :)