percona / mongodb_exporter

A Prometheus exporter for MongoDB including sharding, replication and storage engines
Apache License 2.0
1.16k stars 425 forks source link

Cannot connect to the server #750

Closed mgourlay64 closed 9 months ago

mgourlay64 commented 9 months ago

Describe the bug Hi,

I am encountering this issue on the new release v0.40.0

Cannot connect to server using url mongodb://****:****@localhost:27017: no reachable servers source="connection.go:86"

I have created a user with the rights needed, I can connect with compass with the same URI, but here it is not working, any idea ?

Expected behavior Enable to connect, or a least have the right error of why it isn't connected

Logs

Environment