Remove unused servers from PMM

We recently decommissioned some unused Mysql servers. Part of this process involved removing the nodes from Percona Monitoring and Management (PMM). I found that although this process is very simple overall, it is not every intuitive. The process is as follows:

1) Find node name:
curl -s '' | python -mjson.tool

2) Remove node from consul:
curl -s -X PUT -d '{"Datacenter":"dc1","Node":"node_name"}' ''

3) Remove node from prometheus:
curl -X DELETE '\[\]=\{instance="node_name"\}'

Leave a Reply

Your email address will not be published. Required fields are marked *