Closed yoUn3qcdi5dk6QiY6fpoQhttKvcC86jxSgedJek closed 6 months ago
seems like this problem already fixed in #800
seems like in your case username had mongodb prefix.
You are right, I did not see/associate this report with my problem. In my case the username was "mongodb_exporter" and fits this previous bug report. Close as this problem is already handled in https://github.com/percona/mongodb_exporter/pull/800
Describe the bug When trying to setup MongoDB exporter using variables for username and password as mentioned in the documentation, to not expose the password: https://github.com/percona/mongodb_exporter?tab=readme-ov-file#mongodb-authentication MONGODB_USER overwrites the mongodb:// part of the connection-uri. Using a connection-uri containing the username und password works without any issue.
To Reproduce Steps to reproduce the behavior:
Expected behavior MONGODB_USER should be able to be defined without "mongodb://"
Environment