How to set up Grafana so that no password is necessary to view dashboards

后端 未结 5 904
日久生厌
日久生厌 2021-01-31 02:13

Despite these settings, Grafana still requires the use of a password to view Dashboards. Can someone please help me with the correct settings?

[auth.anonymous]
#         


        
5条回答
  •  孤城傲影
    2021-01-31 02:21

    To setup login for anonymous users you need to make these small configuration changes in the default.ini/grafana.ini file (Grafana\conf).

    1. If you want to hide the login page do this configuration:

      [auth]
      # Set to true to disable (hide) the login form, useful if you use OAuth
      #disable_login_form = false 
      disable_login_form = true
      

      Change disable_login_form to true.

    2. Enable anonymous access:

      [auth.anonymous]
      # enable anonymous access 
      enabled = true
      
    3. Specify the organization:

      # specify organization name that should be used for unauthenticated users
      org_name = YOUR_ORG_NAME_HERE
      
    4. Restart Grafana and you should be able to see the Grafana dashboard. If not, just change your org role from Viewer to Editor:

      # specify role for unauthenticated users
      org_role = Editor
      

提交回复
热议问题