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

It is possible to add more than one exporter with the same name

    Details

    • Type: Bug
    • Status: On Hold
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: 1.17.1
    • Fix Version/s: None
    • Component/s: PMM Client
    • Labels:

      Description

      Steps to reproduce:

      1. Add delay between pmm-client and pmm-server

      # tc qdisc add dev  docker0 root netem delay 750ms
      

      2. Run concurrently:

      # pmm-admin add mysql:metrics --user=root --password=a --socket=/var/run/mysqld/mysqld.sock aaaa
      

      PMM will add two instances with the same name:

      SERVICE TYPE   NAME  LOCAL PORT  RUNNING  DATA SOURCE                                 OPTIONS 
      -------------- ----- ----------- -------- ------------------------------------------- --------
      mysql:metrics  aaaa  42002       YES      root:***@unix(/var/run/mysqld/mysqld.sock)          
      mysql:metrics  aaaa  42003       YES      root:***@unix(/var/run/mysqld/mysqld.sock)          
      

      Moreover, Prometheus scrapes correctly, but it assigned the same label to each host.

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                iwo.panowicz Iwo Panowicz
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: