# Query Analytics empty without logging into grafana

**URL:** <https://forums.percona.com/t/query-analytics-empty-without-logging-into-grafana/8273>\
**Category:** PMM 2.x\
**Tags:** grafana, percona, postgres\
**Created:** [November 12, 2020, 2:04pm UTC](https://forums.percona.com/t/query-analytics-empty-without-logging-into-grafana/8273 "2020-11-12T14:04:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Raj](https://forums.percona.com/u/Raj)\
**Post date:** [November 12, 2020, 2:04pm UTC](https://forums.percona.com/t/query-analytics-empty-without-logging-into-grafana/8273/1 "2020-11-12T14:04:56Z")

</div>

We are in the process of setting up PMM2 for our Postgres clusters and would like to provide access to the users to check the dashboard and query analytics.

Currently anonymous access works for querying the Postgres services, but the query analytics shows blank . If I login into grafana (user with Viewer privilege) all works fine.

Is there anyway to allow the anonymous access to query analytics.

I tried the following changes in the grafana.ini

[auth.anonymous]

enabled = true

org\_name = Main Org.

org\_role = Viewer

The log shows the following error

t=2020-11-12T19:31:33+0000 lvl=info msg=“Request Completed” logger=context userId=0 orgId=1 uname= method=GET path=/api/user status=404 remote\_addr=127.0.0.1 time\_ms=0 size=56 referer=

Seems like grafana endpoint (/api/users) is providing 404 to quan there by showing empty pages.

Thanks

Raj

---

<div class="post-metadata">

**Author:** ![Vadim\_Yalovets](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vadim_yalovets/32/43_2.png) [@Vadim\_Yalovets](https://forums.percona.com/u/Vadim_Yalovets)\
**Post date:** [November 13, 2020, 5:19am UTC](https://forums.percona.com/t/query-analytics-empty-without-logging-into-grafana/8273/2 "2020-11-13T05:19:42Z")

</div>

Hi Raj,

You should disable authentication for QAN location in nginx configuration file.

_/etc/nginx/conf.d/pmm.conf_

![Screenshot_20201113_124648.png](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/1X/c6c148ad25595515d231ba8f9c1253c5c9705c92.png)

---

<div class="post-metadata">

**Author:** ![Raj](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Raj](https://forums.percona.com/u/Raj)\
**Post date:** [November 16, 2020, 8:51am UTC](https://forums.percona.com/t/query-analytics-empty-without-logging-into-grafana/8273/3 "2020-11-16T08:51:45Z")

</div>

Adding the “auth\_request off” solved my issue. Thanks
