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

pmm-client doesn't work when i configure with node-name

    XMLWordPrintable

    Details

    • Needs Review:
      Yes
    • Needs QA:
      Yes

      Description

      User impact: User can successfully run pmm-admin config with a node-name option but pmm-server can't receive any data from the client

       

      STR:

      1. Install PMM server and client 2.4.0 

      $ docker run -d -p 443:443 -p 80:80 --restart always --volumes-from pmm-data --name pmm-server percona/pmm-server:2.4.0
      $ sudo apt-get install pmm2-client=2.4.0-6.xenial
      

      2. Configure pmm client with node name as IP address and add mysql to monitoring

      $ pmm-admin config --server-insecure-tls --server-url=https://admin:admin@localhost:443 node-name='10.10.10.10' --force
      
      $ pmm-admin add mysql mysql5.7 --username="root" --password="pass" --port=3306 --query-source=perfschema

      3. Check Node Summary and MySQL Instance Summary dashboards

      Actual result:

      Dashboards show no data for the current node and added mysql

      $ pmm-admin list
      Service type Service name Address and port Service ID
      MySQL mysql5.7 127.0.0.1:3306 /service_id/20c2f9f5-85d2-4cbb-a941-049e43310b0f
      Agent type Status Agent ID Service ID
      pmm_agent Connected /agent_id/126351b6-4ff3-4fde-ad2d-3c509769e4da 
      node_exporter Running /agent_id/b1ede7e8-ff08-41ee-8561-ae7444038ba9 
      mysqld_exporter Running /agent_id/15d3e592-d62c-4f91-ac71-2820949531b3 /service_id/20c2f9f5-85d2-4cbb-a941-049e43310b0f
      mysql_perfschema_agent Running /agent_id/2df1eb5b-24db-4f18-b60c-716195fd04bf /service_id/20c2f9f5-85d2-4cbb-a941-049e43310b0f
      

      Expected result:

      Since pmm-admin config configured successfully with a node-name option, it should send details to pmm-server for monitored instances

      Additional information:

      Reproduced also with 2.9.1 

      Original report:

      Hi,

      I installed pmm2.4 server and upgrade pmm client to 2.4;

      I configured pmm-client with this command: 

      pmm-admin config --server-insecure-tls --server-url=https://admin:xxx@10.10.xx.xx:443
      

      It works well.

      But I want to specify the node name as ip address,so:

      pmm-admin config --server-insecure-tls --server-url=https://admin:xxx@10.10.xx.xx:443 node-name='10.10.xx.xx' --force
      

      After this, pmm-server can't recive any data from the client.

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              kimiliang kimiliang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1 hour
                  1h