Not the answer you need?
Register and ask your own question!

How do I delete instances that are no longer used?

peng19832peng19832 ContributorCurrent User Role Contributor
How do I delete instances that are no longer used, such as those marked in the red box in the picture?
These instances, I have removed on the client, using the "pmm-admin remove" command, but still on the page

Comments

  • lorraine.pocklingtonlorraine.pocklington Percona Community Manager Legacy User Role Patron
    Hi peng19832

    There used to be an instruction in the documentation that said "The Dashboards tab lists all available dashboards. To deactivate any dashboard, select the Trash Bin button." but I admit that I can't see that now. Does this apply to you though?

    Meanwhile, I will ask the team about it...
  • lorraine.pocklingtonlorraine.pocklington Percona Community Manager Legacy User Role Patron
    Hi again ... can I check which version of PMM client you are using? I found this post which suggests there might be an issue with purge... https://www.percona.com/forums/questions-discussions/percona-monitoring-and-management/52807-how-can-i-delete-the-dashboard-of-the-hosts-that-are-no-longer-monitored
  • peng19832peng19832 Contributor Current User Role Contributor
    Hi again ... can I check which version of PMM client you are using? I found this post which suggests there might be an issue with purge... https://www.percona.com/forums/questions-discussions/percona-monitoring-and-management/52807-how-can-i-delete-the-dashboard-of-the-hosts-that-are-no-longer-monitored

    pmm-client:1.9.1
    server:1.16.0
  • Michael CoburnMichael Coburn Principal Architect, Percona Percona Staff Role
    Hi peng19832

    Once you remove the client packages and confirm the exporters are stopped, PMM Server will no longer be able to collect metric series from the host. Removing services does not purge the data from PMM Server - rather , this data will automatically expire as time goes on. If you don't want to see these hosts in your dropdown Host lists, you'll need to do two things:
    1. Select a time range that is AFTER the time you removed the services.
    2. Force the browser to refresh.
    The reasons are that PMM Server will display metric series during a given interval if that metric series exists - so this is why you need to identify a time range after you removed the services. And our dashboards are set up to evaluate Host list dropdowns ONLY on dashboard reload (i.e. page reload). Hope this helps!
  • peng19832peng19832 Contributor Current User Role Contributor
    ok, I will try
  • peng19832peng19832 Contributor Current User Role Contributor
    Hi peng19832

    Once you remove the client packages and confirm the exporters are stopped, PMM Server will no longer be able to collect metric series from the host. Removing services does not purge the data from PMM Server - rather , this data will automatically expire as time goes on. If you don't want to see these hosts in your dropdown Host lists, you'll need to do two things:
    1. Select a time range that is AFTER the time you removed the services.
    2. Force the browser to refresh.
    The reasons are that PMM Server will display metric series during a given interval if that metric series exists - so this is why you need to identify a time range after you removed the services. And our dashboards are set up to evaluate Host list dropdowns ONLY on dashboard reload (i.e. page reload). Hope this helps!

    @Michael CoburnSorry, after I followed the 2-step operation you said, the instance in the drop-down list that has been removed by pmm-admin still exists.
  • Michael CoburnMichael Coburn Principal Architect, Percona Percona Staff Role
    Hi peng19832

    If you select say a 5 minute range, and force the browser to do a full refresh (important), you still see the instances in the dropdown list?

    It isn't clear to me why the nodes would then still show up, we use a Prometheus query to generate the drop-down list. This list is evaluated on dashboard load (browser refresh).

    [IMG2=JSON]{"data-align":"none","data-size":"full","src":"https:\/\/www.percona.com\/forums\/image\/gif;base64,R0lGODlhAQABAPABAP\/\/\/wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw=="}[/IMG2]​
    You can also inspect Prometheus directly to determine if the data remains in the database. For example this query will tell me how many instances of MongoDB I have per cluster. In my case I have only one Cluster defined, and 11 nodes as part of it.

    Can you run these and let us know what you see?
  • peng19832peng19832 Contributor Current User Role Contributor
    Oh, thank you, this question has disappeared.
  • lorraine.pocklingtonlorraine.pocklington Percona Community Manager Legacy User Role Patron
    peng19832 do you mean it's fixed for you now?
  • peng19832peng19832 Contributor Current User Role Contributor
    peng19832 do you mean it's fixed for you now?

    Yes, after waiting for 30 days (default), those display exceptions instances was removed from the drop-down list.
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.