Query Analytics empty without logging into grafana

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

Hi Raj,

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

/etc/nginx/conf.d/pmm.conf

Screenshot_20201113_124648.png

Adding the “auth_request off” solved my issue. Thanks