I have many agent that has been added in my PMM instance, then the virtual machines has been removed without deleting properly the agents/nodes from the inventory (i.e with
pmm-admin inventory remove command).
The fact is that, now, I have thousands of unhealthy targets that PMM still wants to scrape every x seconds.
I tried to remove it from the API using the
/v1/inventory/Nodes/Remove endpoint, but after deleting some of it (apparently successfully according to the empty response body), the number of unhealthy target does not decrease…
Is there something else that I should do ? My server is running low on memory and I’d like to clean this mess as soon as possible.
Any help would be appreciate,