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

Check if job exists while removing external instances/metrics/service

    Details

      Description

      1. Try to remove external:service with another port :
        root@0367719bf40a:/# pmm-admin list
        pmm-admin 1.7.0
        
        PMM Server      | 10.10.11.50 (insecure SSL, password-protected)
        Client Name     | 0367719bf40a
        Client Address  | 172.17.0.1 (172.17.0.3)
        Service Manager | unix-systemv
        
        No monitoring registered for this node identified as '0367719bf40a'.
        
        Job name  Scrape interval  Scrape timeout  Metrics path  Scheme  Target  Labels  Health
        root@0367719bf40a:/# 
        root@0367719bf40a:/# 
        root@0367719bf40a:/# pmm-admin rm external:service postgresql --service-port=9180
        External service removed.
        root@0367719bf40a:/# pmm-admin list
        pmm-admin 1.7.0
        
        PMM Server      | 10.10.11.50 (insecure SSL, password-protected)
        Client Name     | 0367719bf40a
        Client Address  | 172.17.0.1 (172.17.0.3)
        Service Manager | unix-systemv
        
        No monitoring registered for this node identified as '0367719bf40a'.
        
        Job name  Scrape interval  Scrape timeout  Metrics path  Scheme  Target  Labels  Health

      Expected result: Error message like "There is no such job"

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nailya.kutlubaeva Nailya Kutlubaeva
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: