Open asemarian opened 2 weeks ago
We met the same issue. Our exporter is out of k8s. Now we rollback to 0.40.0. It works fine. I guess new version has detected the mongo replicaset cluster. Without the dns in k8s, exporter can find mongo's ip never.
I'm using the Percona Operator for MongoDB to deploy a MongoDB cluster on Kubernetes. I'm trying to add a sidecar container running
mongodb_exporter
to collect metrics. Here is my current configuration for the sidecar:Note that:
--mongodb.uri
argument to connect to the MongoDB instance.MONGODB_USER
andMONGODB_PASSWORD
for the clusterAdmin role.The problem is that the exporter cannot connect to the MongoDB instance. Here's the logs:
I'd appreciate any insights you can offer into why the exporter is failing to connect.
Thank you.