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

后端 未结 5 986
日久生厌
日久生厌 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:29

    First of all, in grafana.ini adjust the following values:

    [auth.anonymous]
    # enable anonymous access
    enabled = true
    
    # specify organization name that should be used for unauthenticated users
    org_name = YOUR_ORG_NAME_HERE
    
    # specify role for unauthenticated users
    org_role = SOME_USER_NAME_HERE # e.g. Anonymous
    

    Now, after restarting Grafana, log in and make sure there is another user than admin created. If not, create one. The values in the user creation dialogue are actually unimportant to achieve the task.

    Finally, set the same organisation name under global orgs to match your grafana.ini value. Also, make sure the user you created has the role you set in grafana.ini (in my example the role would be "Anonymous").

提交回复
热议问题