Hi Team,
we are using PMM2.2 version to monitor MongoDB database but we are getting lots of messages in mongoDb log
Please let know how can i fix it .
monitoring by mongodb_exporter user
db.getSiblingDB(“admin”).createUser({
user: “mongodb_exporter”,
pwd: "****,
roles: [
{ role: "clusterMonitor", db: "admin" },
{ role: "read", db: "local" }
]
})
pmm-admin config --server-insecure-tls --server-url=https://admin:admin@XX.XX.XX.XX:443
pmm-admin add mongodb --username mongodb_exporter --password ***** --service-name=Testm2 --query-source=none --host=127.0.0.1 --port=27017
2020-03-29T10:11:26.695+0200 I ACCESS [conn7401125] Unauthorized: not authorized on config to execute command { collStats: “system.sessions”, scale: 1, lsid: { id: UUID(“05347118-6397-4d9a-92da-bdc293d8674b”) }, $clusterTime: { clusterTime: Timestamp(1585469484, 1), signature: { hash: BinData(0, 7EFE52FC1986771F502C7A2D477FCD8ECFA1CC70), keyId: 6775416033059536897 } }, $db: “config”, $readPreference: { mode: “primaryPreferred” } }
2020-03-29T10:11:26.696+0200 I ACCESS [conn7401125] Unauthorized: not authorized on config to execute command { collStats: “system.profile”, scale: 1, lsid: { id: UUID(“05347118-6397-4d9a-92da-bdc293d8674b”) }, $clusterTime: { clusterTime: Timestamp(1585469484, 1), signature: { hash: BinData(0, 7EFE52FC1986771F502C7A2D477FCD8ECFA1CC70), keyId: 6775416033059536897 } }, $db: “config”, $readPreference: { mode: “primaryPreferred” } }
2020-03-29T10:11:26.713+0200 I ACCESS [conn7401125] Unauthorized: not authorized on customer_ABC to execute command { collStats: “system.profile”, scale: 1, lsid: { id: UUID(“05347118-6397-4d9a-92da-bdc293d8674b”) }, $clusterTime: { clusterTime: Timestamp(1585469484, 1), signature: { hash: BinData(0, 7EFE52FC1986771F502C7A2D477FCD8ECFA1CC70), keyId: 6775416033059536897 } }, $db: “customer_docs”, $readPreference: { mode: “primaryPreferred” } }