I installed pmm server and client on two different machines, following the instructions given here >> https://www.percona.com/doc/percona-monitoring-and-management/install.html
Both pmm-server and client got installed properly but I was not able to see the Queries in the Query Analytics window. The pmm server GUI gave errors (PFA).
Also on the client side on giving the command “sudo pmm-admin add queries --user abc --password xyz” gave the following error:
“Error adding queries: “service” failed: exit status 1, Starting pmm-queries-exporter-42001
Unable to start, see /var/log/pmm-queries-exporter-42001.log”
The content of the file pmm-queries-exporter-42001.log:
flag needs an argument: -pid-file
Usage of /usr/local/percona/qan-agent/bin/percona-qan-agent:
Agent basedir (default “/usr/local/percona/qan-agent”)
Agent interface address (default “127.0.0.1:9000”)
PID file (default “percona-agent.pid”)
Also, on one other client I got the following error:
[MySQL] 2016/08/02 00:25:59 packets.go:118: write unix @->/var/run/mysqld/mysqld.sock: write: broken pipe
Cannot connect to MySQL: Error 1045: Access denied for user ‘root’@‘localhost’ (using password: NO)
Please tell what I am doing wrong. Any help will be highly appreciated.