I configured my MongoDB connection string to include 2 clusters. However, the exporter is only connecting to one cluster and is failing to retrieve metrics from both.
Currently, the exporter is only providing metrics from Shard 0. I enabled the --collector.shards flag, but the exporter logs indicate that it couldn't find any flag with this name and instead provided a list of available flags. Pod enter in CrashLoopBack state"
To Reproduce
Steps to reproduce the behavior:
set the mongodb-uri": Example> "mongodb+srv://user:pass@cluster1.mongodb.net,mongodb+srv://user:pass@cluster2.mongodb.net"
Set the extraargs --collector.shards
deploy the exporter
See pod logs to see the flag errors
View the scraped metrics and verify there isn't metrics from 2 clusters.
Expected behavior
Metrics from both clusters and all shards should be available.
Logs
Please provide logs relevant to the issue
Environment
environment (k8s)
MongoDB version: 7.0.12
Additional context
I'm using the created secret option on values.yaml
Bug Description
To Reproduce Steps to reproduce the behavior:
Expected behavior
Logs Please provide logs relevant to the issue
Environment
Additional context I'm using the created secret option on values.yaml