Not the answer you need?
Register and ask your own question!

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

Best Answer

  • adivinhoadivinho Percona Percona Staff Role
    Accepted Answer

    Hi Raj,

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

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



Answers

  • RajRaj Current User Role Novice

    Adding the "auth_request off" solved my issue. Thanks

Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.