Details
-
Bug
-
Status: Done
-
High
-
Resolution: Done
-
None
-
1
-
Yes
-
Yes
Description
The link below:
https://www.percona.com/doc/percona-monitoring-and-management/2.x/conf-mongodb.html
The correct privilege is readAnyDatabase. Here is an example:
db.getSiblingDB("admin").createUser({ user: "mongodb_exporter", pwd: "mongo", roles: [ { role: "clusterMonitor", db: "admin" }, { role: "readAnyDatabase", db: "admin" } ] })