Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-4449

QAN not support ssl mode for mongodb

Details

    • Improvement
    • Status: Done
    • High
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • percona-server-mongodb  4.0.10-5.bionic
      pmm-client 1.17.1-1.bionic
      pmm-server 1.17.1 (Docker)

    Description

      Have a server percona-server-mongodb with settings:

      net:
        ssl:
          mode: requireSSL
      

      Start monitoring QAN for MongoDB:

      # pmm-admin add mongodb:queries --uri 'mongodb://user:password@host:27017/admin?replicaSet=rs0&ssl=true'  --config-file /usr/local/percona/pmm-client/pmm.yml host
      OK, now monitoring MongoDB queries using URI user:***@host:27017/admin
      It is required for correct operation that profiling of monitored MongoDB databases be enabled.
      Note that profiling is not enabled by default because it may reduce the performance of your MongoDB server.
      For more information read PMM documentation (https://www.percona.com/doc/percona-monitoring-and-management/conf-mongodb.html).
      

      Check agent status:

      # pmm-admin list | grep mongodb:queries
      mongodb:queries  mongo03.trbna.com  -           YES                 user:***@host:27017/admin  open /usr/local/percona/qan-agent/config/qan-fe6f07f8e0f947536c4f8abb62af283e.conf: no such file or directory
      

      Check logs on PMM-Server:

      2019-07-30T12:38:49.069694403Z	agent	warning	Cmd fail: Reply[Cmd:StartTool Error:'Cannot start analyzer: unsupported connection URL option: ssl=true' Id:c2f1e8d6-008c-438c-705b-c1cce64cbe5c]
      

      In attachment full logs.

      P.S.
      Monitoring metrics with ssl option is work correctly:

      # pmm-admin add mongodb:metrics --uri 'mongodb://user:password@host:27017/admin?replicaSet=rs0&ssl=true' --cluster MongoDB-rs0 --config-file /usr/local/percona/pmm-client/pmm.yml host
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              MemberIT Mikhail Konyakhin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Smart Checklist