Unable to add mongodb:queries

Hi,

I am trying to add mongodb:queries

[root@xsj-dv01 pmm-client]# ./pmm-admin add mongodb --dev-enable --uri mongodb://xxmonitor:xxxxxxx@xsj-dv01:27030
[linux:metrics] OK, already monitoring this system.
[mongodb:metrics] OK, already monitoring MongoDB metrics.
[mongodb:queries] Error adding MongoDB queries: timeout 10s waiting on agent to connect to API.

thanks,
tanveer

Hi,

I was able to get around the above error
But now, no queries are being collected. I have attached the screenshot
In this screenshot in the settings tab I do not see “Slow Log Configuration”
The database has the profiling set up

MongoDB server version: 3.4.6
cop:PRIMARY> db.getProfilingStatus()
{ “was” : 1, “slowms” : 100 }
cop:PRIMARY> db.getProfilingStatus()
{ “was” : 1, “slowms” : 100 }
cop:PRIMARY>

Does mongodb:queries work with MongoDB Community edition

Thanks,
Tanveer

Hey, sorry for late answer.

Please feel free to try out newest pmm-client, which should have those issues fixed.

Also please have in mind that if you try it out on dev env, you might want to have Profiling set to 2 (all queries) instead of 1 (slow queries only).

pmm-admin 1.4.1
MongoDB shell version: 3.0.15
db.getProfilingStatus()
{ “was” : 2, “slowms” : 100 }

and I’m getting the same error:
pmm-admin add mongodb:queries
Error adding MongoDB queries: timeout 10s waiting on agent to connect to API.

suggestions?

Hi,

I am using pmm 1.5.2 and trying to add mongodb:queries by following command.

pmm-admin add mongodb:queries --uri mongodb://localhost:27018

Error adding MongoDB queries: timeout 10s waiting on agent to connect to API.

Logs:

cat /var/log/pmm-mongodb-queries-0.log

Version: percona-qan-agent 1.5.2

Basedir: /usr/local/percona/qan-agent

PID: 8736

API: 10.0.1.238:8080/qan-api

UUID: 8b3f09cd28e8456753f17564a4f8a3bc

2017/12/08 08:19:19.573514 main.go:163: Starting agent…
2017/12/08 08:19:19.588473 main.go:204: API is ready
2017/12/08 08:19:33.697723 main.go:331: Agent is ready

Could you please advice on the same.