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

pmm-server connecting to incorrect IP on agent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Invalid
    • Affects Version/s: 2.5.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Description

      Hi,

      I am trying to add an agent via command line:

      pmm-admin config --force --server-insecure-tls --server-url=https://admin:admin@10.xx.xx.12:443
      Checking local pmm-agent status...
      pmm-agent is running.
      Registering pmm-agent on PMM Server...
      Registered.
      Configuration file /usr/local/percona/pmm2/config/pmm-agent.yaml updated.
      Reloading pmm-agent configuration...
      Configuration reloaded.
      Checking local pmm-agent status...
      pmm-agent is running.

      Then I add the MySQL exporter with

      pmm-admin add mysql --username=root --password=root  --host=10.xx.47.20 --service-name=prd-galeratest --port=3306 --cluster=test
      MySQL Service added.
      Service ID  : /service_id/263c11c4-5d1d-4177-8cb7-4953460cb57e
      Service name: prd-galeratest
      Table statistics collection enabled (the limit is 1000, the actual table count is 164).
      

      Now in the Prometheus dashboard against this node, I see errors like:

      Get http://[fx81::5053:xf:fx35:475b]:42000/metrics?collect%5B%5D=hwmon&collect%5B%5D=textfile.mr: dial tcp [fx81::5053:xf:fx35:475b]:42000: connect: invalid argument

      It is trying to connect to the ipv6 address on ens3 interface which is not the right IP.

      The IP I want it to communicate is  10.xx.47.20, which is bound to lo interface on the agent.
      This error is getting reproduced for all of the boxes in my network as the IP address on which the agent will be reachable is bound to lo interface and pmm-server tries to connect to the ip address on ens3/eth0 interfaces even when IP address is given in host argument when adding exporter.

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              K AK
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: