Sometime when I refresh the dashboard I am getting the error saying (Cannot connect to the QAN API.) at that point of time I was unable to view the details of Queries.
Also. Some queries were getting trimmed. I am unable to view full query.
What interface do you use [url]http://pmm-ip/qan/[/url] or [url]http://pmm-ip/qan2/[/url] ?
can you open “Developer Tools” in your browser and check what kind of errors do you have.
Is it network connectivity errors or some wrong response from the server side (“Network” tab)?
is any javascript errors (“Console” tab)?
Yes, I have a look at log and found that the user have crosses the limit to connect. “max_user_connections” configured to 10 and user we have set that to 0.
After setting to 0, we found that pmm user is acquiring more connection on database, say 25 as of now. How to restrict this?
Mykola, the error which I am receiving in dashboard is
QAN API error: “qh.Profile: No query classes for selected instance and time range. Please check whether your MySQL settings match the recommended.”.
Check the /var/log/qan-api.log file in docker container for more information.
The above all settings you were mentioned are fine. But below are the Errors I found on log.
WARNING agent Cmd fail: Reply[Cmd:Explain Error:‘cmd ‘Explain’ for subsystem ‘mysql’ failed: Error 1345: EXPLAIN/SHOW can not be issued; lacking privileges for underlying table’ Id:e274d5ca-0c84-4557-7225-8c9b1f936132]
WARNING qan-analyzer-mysql-757a86ea-worker Interval out of sequence: got 1, expected 113
ERROR agent Executable file not found in $PATH
WARNING agent Cmd fail: Reply[Cmd:GetServerSummary Error:‘Executable file not found in $PATH’