Not the answer you need?
Register and ask your own question!

qan does not remove or stop individual servers

erinoerino ContributorInactive User Role Beginner
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
1. pmm-admin stop mysql:queries myrds2
2. pmm-admin list shows ALL mysql:queries had stopped, including my main RDS.
3. pmm-admin start mysql:queries myrds1
4. pmm-admin list shows ALL mysql:queries had started, including myrds2.
5. I again stopped mysql:queries : pmm-admin stop mysql:queries
6. ran pmm-admin remove mysql:queries myrds2
7. pmm-admin start mysql:queries myrds1 and mysql:queries myrds2 was STILL listed.
8.. systemctl stop pmm-mysql-queries-0
9. systemctl start pmm-mysql-queries-0
10. pmm-admin list show ALL mysql:queries had started, including myrds2.
11. went into PMM queries & the drop down showed me the UUID of myrds2.
12. pmm-admin stop mysql:queries
13. systemctl stop pmm-mysql-queries-0
14 sudo rm /usr/local/percona/qan-agent/instance/<myrds2>json
15 ran systemctl start pmm-mysql-queries-0
16. pmm-admin start mysql:queries
17. pmm-admin list showed that the myrds2 was no longer in the list.

I had to remove the <UUID>.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.


Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.