Delete/Re-register hosts on PMM2

Hi - I’m doing some cleanup on my hmm server and would like to delete and re-add all the monitored hosts. Please suggest how do I go about it . I tried deleting all the services , agents and nodes from PMM Inventory , but I still see all the hosts on the main dashboard. How do I clean it up all ?

and when I try to remove them using this command I get the below error

[root@aws-d-us-pmm-mon20 rules]# pmm-admin remove mysql a10-d-usa-c10-rds-20
Unauthorized. Please check username and password.

Thanks
Deepthi

Hi Deepthi,

Could you provide a screenshot of PMM Inventory page (tab Nodes) and “pmm-admin list” command output on the monitored node (aws-d-us-pmm-mon20)?

Did you enable the Force mode during node deleting operation?

There you go . Yes, I have used Force mode. The monitored node is a Amazon RDS Aurora , I don’t have access to the physical node.

aws-d-us-pmm-mon20 is my pmm monitoring server , not the monitored host . MOnitored host is a10-d-usa-c10-rds-20

should I be giving it sometime to clean up the Home dashboard ?

and here is my dashboard . I’ve deleted all those instances from the nodes tab in PMM Inventory,but they are still showin up on my dashboard

Timeseries are not deleted if an instanced is dropped.
You may use the next API request to your PMM server in order to delete all data.
curl -G -u admin:admin -k 'https://aws-d-us-pmm-mon20/prometheus/api/v1/admin/tsdb/delete_series' --data-urlencode 'match[]={__name__=~".*"}'

Awesome ! it looks like time series graphs cleared themselves with matter of time. I’ll save the command for future though ! Thanks again !!