Closed ericinfra closed 9 months ago
Hi @ericinfra , I see that you closed this issue. Does that mean that issue was resolved? If it is, what was the problem?
The reason is that in mongodb7.0, the mongodb_exporter user must be given the clusterMonitor role.
The command is as follows:
use admin
db.grantRolesToUser(
"mongodb_exporter",
[ "clusterMonitor" ]
)
Environment
mongodb 7.0.3 After authorization is enabled, mongodb exporter 0.40 cannot be linked to mongodb
mongodb exporter 0.40 Logs are as follows:
mongodb 7.0.3 Logs are as follows: