Monitoring queries is such a great feature and I really like it. That said it can be clunky to admin. I am on RDS, which means that it can be easy to add instances but deleting QAN for instances about to be decommissioned is challenging. I took notes. Tried many things and eventually found the UUID associated with the QAN and removed it. Here’s the details:
pmm-admin Info
pmm-admin 1.2.0 (both server & client)
I did the following
- pmm-admin stop mysql:queries myrds2
- pmm-admin list shows ALL mysql:queries had stopped, including my main RDS.
- pmm-admin start mysql:queries myrds1
- pmm-admin list shows ALL mysql:queries had started, including myrds2.
- I again stopped mysql:queries : pmm-admin stop mysql:queries
- ran pmm-admin remove mysql:queries myrds2
- pmm-admin start mysql:queries myrds1 and mysql:queries myrds2 was STILL listed.
8… systemctl stop pmm-mysql-queries-0 - systemctl start pmm-mysql-queries-0
- pmm-admin list show ALL mysql:queries had started, including myrds2.
- went into PMM queries & the drop down showed me the UUID of myrds2.
- pmm-admin stop mysql:queries
- systemctl stop pmm-mysql-queries-0
14 sudo rm /usr/local/percona/qan-agent/instance/json
15 ran systemctl start pmm-mysql-queries-0 - pmm-admin start mysql:queries
- pmm-admin list showed that the myrds2 was no longer in the list.
I had to remove the .json from the qan-agent/instances to get that RDS instance to stop collecting queries. I found that my running a find for the qan UUID on the instance I wanted to go away. Seems like remove should remove that UUID or at least change the name so it won’t be used by qan.
I’m putting this here incase someone else is having similar problems.