I’m trying to figure out how to hide example queries in qan for all hosts. I unchecked the "Send real query examples" option in the management gui but qan is still showing them.
Ideally I’d like to do this on a client-by-client basis in the config.yml file…is this possible?
you can disable “Send real query examples” for required instance
wait 1-2 minutes for reconfiguration.
run the following commands on docker server
docker exec -it pmm-server /usr/bin/mysqldump pmm query_examples > /tmp/backup-query_examples.sql
docker exec -it pmm-server /usr/bin/mysql -e '
DELETE
FROM pmm.query_examples
WHERE instance_id IN (
SELECT i.instance_id
FROM pmm.instances i
WHERE i.subsystem_id=3
AND i.name="___INSTANCE_NAME___"
)
;
'