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

MongoDB Cluster drop-down list doesn't get updated on removal.

Details

    • Bug
    • Status: Done
    • Low
    • Resolution: Fixed
    • 1.17.0
    • 1.17.3
    • Grafana Dashboards
    • None
    • 1
    • Platform Sprint 3, Platform Sprint 4, Platform Sprint 5
    • Yes
    • Yes
    • Yes

    Description

      After removing all servers from a cluster, the drop-down list will still include the cluster name.

       

      Steps to reproduce:

      Install pmm-client and use pmm-admin command to monitor a node, and add it to a cluster

      pmm-admin add mongodb:metrics --uri "127.0.0.1:20369" --cluster mongoClusterPMM2 bm-support02 

      Remove the exporter

      pmm-admin remove mongodb:metrics bm-support02 

      Go to the MongoDB Overview dashboard and see how it is still listed (even after some time has passed, and there are no more metrics.

       

      Some screenshots attached to show this (in this environment I had also created another cluster with another node being monitored, this is why you will see listings for bm-support01 and mongoClusterPMM.

       

      Suggested fix:

      Don't include cluster names for instances that don't exist.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            agustin.gallego Agustín Gallego
            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 - 4 hours, 40 minutes
                4h 40m

                Smart Checklist