how to remove pmm scrap host

Hi

i’m changed client server hostname.

ex) aaa.percona.com to bbb.percona.com

and

pmm-admin stop mysql:metrics
pmm-admin stop linux:metrics
pmm-admin purge aaa.percona.com

pmm-admin start mysql:metrics
pmm-admin start linux:metrics

i hope pmm-server scrap bbb.percona.com
but pmm server is scrap both of them.

how i can remove aaa.percona.com scrap?

Hello, thanks for your question. Could you take a look at pmm-admin config to see if that offers what you need? [url]Percona Monitoring and Management

1 Like

You should try to remove node from consul.

Ref: [URL=“How to remove/deregister an instance from PMM?”]https://mysql-ninjas.blogspot.com/20...ance-from.html[/URL]

2 Likes

This works… to deregister … take in count that the line that says “node”:“node-name” just put the node on the node name.

1 Like

pmm-admin has a purge command. Run this (possibly a few times, it can time out with a lot of data accumulated in prometheus). Then deregister with pmm-admin remove, pmm-admin uninstall. That will result in the machine no longer showing up in the PMM web interface.

Then configure it as a new node with a new name with pmm-admin.

Or you can skip the purge part and wait for the data to naturally expire.

1 Like