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

HAProxy monitoring: Check connection to HAProxy services when adding them for monitoring

Details

    • 0.5
    • Yes
    • Yes
    • [obsolete] C/S Core

    Description

      Here are two "how to test". One for CLI, another for UI.

      How to test CLI:
      1. pmm-admin add haproxy haproxy_name --listen-port=555 (or another fault port)
      Expected: Connection check failed: Get "http://127.0.0.1:465/metrics": dial tcp 127.0.0.1:465: connect: connection refused.

      2. pmm-admin add haproxy haproxy_name --listen-port=REALPORT (real port where HAProxy running, for me it is 8404)
      Expected: HAProxy Service added.
      Service ID : /service_id/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      Service name: haproxy_name

      Check screenshot for both cases and theirs results here:

       
      How to test UI:
      1. Go to grafana
      2. Add instance
      3. Select HAProxy option
      4. Fill some name
      5. Try some random port which is not used, it should show error (connection refused etc..)
      6. Try port where haproxy running, it should add haproxy with success.
      7. Check inventory for haproxy service and external exporter.

      Attachments

        Issue Links

          Activity

            People

              jiri.ctvrtka Jiří Čtvrtka
              jiri.ctvrtka Jiří Čtvrtka
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Smart Checklist