# QAN API error: qh.Profile: No query classes for selected instance and time range.

**URL:** <https://forums.percona.com/t/qan-api-error-qh-profile-no-query-classes-for-selected-instance-and-time-range/5188>\
**Category:** PMM 1.x\
**Created:** [November 4, 2016, 4:53am UTC](https://forums.percona.com/t/qan-api-error-qh-profile-no-query-classes-for-selected-instance-and-time-range/5188 "2016-11-04T04:53:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![electrolinux](https://avatars.discourse-cdn.com/v4/letter/e/b38774/32.png) [@electrolinux](https://forums.percona.com/u/electrolinux)\
**Post date:** [November 4, 2016, 4:53am UTC](https://forums.percona.com/t/qan-api-error-qh-profile-no-query-classes-for-selected-instance-and-time-range/5188/1 "2016-11-04T04:53:49Z")

</div>

Hello!

Thanks for a really nice application!

I’m using pmm 1.0.5 docker image, and 3 percona-xtradb-cluster-5.6 nodes with latest pmm client for ubuntu 14.04.

The 3 nodes are seen in qan, but I’ve always this error popup:

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.

Here is the percona-server version:  
5.6.32-78.1-56-log Percona XtraDB Cluster (GPL), Release rel78.1, Revision 979409a, WSREP version 25.17, wsrep\_25.17  
So, what are the “recommended MySQL settings” for having some analytics ?

---

<div class="post-metadata">

**Author:** ![weber](https://avatars.discourse-cdn.com/v4/letter/w/da6949/32.png) [@weber](https://forums.percona.com/u/weber)\
**Post date:** [November 4, 2016, 9:30am UTC](https://forums.percona.com/t/qan-api-error-qh-profile-no-query-classes-for-selected-instance-and-time-range/5188/2 "2016-11-04T09:30:43Z")

</div>

The error is not the best but it indicates that there are no queries.

For PXC 5.6 we recommend using slowlog as query source.  
Take a look at [URL=“[Percona Monitoring and Management](https://www.percona.com/doc/percona-monitoring-and-management/conf-mysql.html)”][https://www.percona.com/doc/percona-...onf-mysql.html[/URL]](https://www.percona.com/doc/percona-...onf-mysql.html%5B/URL%5D) (first bullet item)  
At least you have to enable:  
log\_output=file  
slow\_query\_log=ON  
long\_query\_time=0
