Only seeing “There is no data for the selected MySQL instance, time range or search query.” message in Percona Query Analytics
– I am only seeing warn messages in the /var/log/qan-api.log for the docker container
~# docker exec 28f119760006 tail -200 /var/log/qan-api.log
…
2017/02/09 00:16:53 data.go:105: WARN: [qan.SaveData] agent_id=11: dbh.Write: cannot get instance ID of 37715fe9d3f54bd85ebdebfc6ce3107c: resource not found
2017/02/09 00:16:53.237 127.0.0.1 0 10.164359ms WS /agents/bdc1c3e092de451c4556b809d49aa524/data
2017/02/09 00:16:54.800 10.2.0.17 200 129.102µs GET /
2017/02/09 00:16:54.801 10.2.0.17 404 66.784µs GET /qan-api/agents/a237b7d933d243145fc2c78469912d48
2017/02/09 00:16:54.801 10.2.0.84 200 61.005µs GET /
2017/02/09 00:16:54.802 10.2.0.84 404 46.298µs GET /qan-api/agents/911b75ae967c44925a6931d9e22b0c97
2017/02/09 00:16:56 data.go:105: WARN: [qan.SaveData] agent_id=11: dbh.Write: cannot get instance ID of 37715fe9d3f54bd85ebdebfc6ce3107c: resource not found
2017/02/09 00:16:56.249 127.0.0.1 0 7.334172ms WS /agents/bdc1c3e092de451c4556b809d49aa524/data
2017/02/09 00:16:57.802 10.2.0.17 200 149.635µs GET /
…
– On the client side there also no errors
~# tail /var/log/pmm-mysql-queries-42001.log
2017/02/08 18:58:02.874976 WARNING data-sender Waiting for API to ack qan_1486551600102701177: EOF
2017/02/08 18:58:59.842433 WARNING data-sender Waiting for API to ack qan_1486551600102701177: EOF
2017/02/08 18:59:02.863205 WARNING data-sender Waiting for API to ack qan_1486551600102701177: EOF
2017/02/08 18:59:05.879229 WARNING data-sender Waiting for API to ack qan_1486551600102701177: EOF
2017/02/08 19:00:02.891185 WARNING data-sender Waiting for API to ack qan_1486551600102701177: EOF
2017/02/08 19:00:05.999314 WARNING data-sender Waiting for API to ack qan_1486551600102701177: EOF
2017/02/08 19:00:10.034412 WARNING data-sender Waiting for API to ack qan_1486551600102701177: EOF
2017/02/08 19:01:05.841785 WARNING data-sender Waiting for API to ack qan_1486551600102701177: EOF
2017/02/08 19:01:08.858094 WARNING data-sender Waiting for API to ack qan_1486551600102701177: EOF
2017/02/08 19:01:11.868625 WARNING data-sender Waiting for API to ack qan_1486551600102701177: EOF
– pmm list comes back okay mysql is version 5.6.32-78.1
~# pmm-admin list
pmm-admin 1.0.4
PMM Server | 10.2.100.68
Client Name | kamek
Client Address | 10.2.0.17
Service manager | unix-systemv
SERVICE TYPE NAME CLIENT PORT RUNNING DATA SOURCE OPTIONS
linux:metrics 10.2.0.17 42000 YES -
mysql:queries 10.2.0.17 42001 YES root:@unix(/var/run/mysqld/app.sock) query_source=slowlog
mysql:metrics 10.2.0.17 42002 YES root:@unix(/var/run/mysqld/app.sock) tablestats=OFF
– The slow log is being flooded with queries.
– I’ve tired removing and re-adding mysql:queries for the client but still don’t see results in Query Analytics.
~# pmm-admin remove mysql:queries 10.2.0.17
OK, removed MySQL queries 10.2.0.17 from monitoring.
rm /etc/init.d/pmm-mysql-queries-42001
rm -rf /usr/local/percona/qan-agent/data/
rm -rf /usr/local/percona/qan-agent/config/
rm -rf /usr/local/percona/qan-agent/instance/
~# pmm-admin add mysql:queries 10.2.0.17
OK, now monitoring MySQL queries from slowlog using DSN root:***@unix(/var/run/mysqld/app.sock)
Any suggestions as to what to try next?
Thanks!