Not the answer you need?
Register and ask your own question!

PMM2 new install, mongodb stats/queries not showing

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
   mode: slowOp
   slowOpThresholdMs: 200
   slowOpSampleRate: 100
I created the mongodb_exporter user in mongo via:
    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= --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,


  • roma.novikovroma.novikov Percona Percona Staff Role
    @tman77 , the first place to check is to make sure you have some queries executed longer than 200ms, or  lower threshold for initial testing 

Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.