Hello all, I just installed pmm2 and pointed it at a server that runs postgres and mongo. The postgres queries/stats showed in the dashboards, but Im not seeing any data for the mongo DB.
I did the following:
Enabled profiling in the mongod.conf
operationProfiling:
mode: slowOp
slowOpThresholdMs: 200
slowOpSampleRate: 100
I created the mongodb_exporter user in mongo via:
db.getSiblingDB("admin").createUser({
user: "mongodb_exporter",
pwd: "somesecret",
roles: [
{ role: "clusterMonitor", db: "admin" },
{ role: "readAnyDatabase", db: "admin" }
]
})
I restarted mongo, and then I ran the following command:
pmm-admin add mongodb --username=mongodb_exporter --password=somesecret –service-name=mongo --host=127.0.0.1 --port 27017 --query-source=profiler --cluster=qa_host1
And I can see the above service running, both via pmm-admin list, and in the pmm2 dashboard under inventory.
Im at a loss as to how to troubleshoot further, it appears pmm2 doesn’t log much or expose log files that I’ve found.
Any suggestions or ideas would be greatly appreciated.
Thank you,
Taylor