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

Unable to add mongodb:queries

Hi,

I am trying to add mongodb:queries

[[email protected] pmm-client]# ./pmm-admin add mongodb --dev-enable --uri mongodb://xxmonitor:[email protected]: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

Comments

  • tanveermadantanveermadan Contributor Current User Role Novice
    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
  • kamil-dziedzickamil-dziedzic Entrant Inactive User Role Beginner
    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).
  • erinoerino Contributor Inactive User Role Beginner
    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?
  • bishtanuragbishtanurag Entrant Legacy User Role Beginner
    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.
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.