Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

grafana

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] # enable anonymous access enabled = true  [auth.basic] enabled = false 
like image 943
Michael Manoochehri Avatar asked Oct 13 '15 20:10

Michael Manoochehri


People also ask

What is the default password for Grafana?

Before starting Grafana for the first time, set the administration user and password in /etc/grafana/grafana. ini . If you don't, the default password is admin .

How do I secure Grafana dashboard?

For secrets that are stored in the Grafana database, you can use an external Key Management System (KMS) to encrypt them. Until recently, Grafana only supported AWS KMS and Azure Key Vault. With the release of Grafana 8.4, you can also use Google Cloud KMS and Hashicorp Vault for this.


2 Answers

Thanks @Donald Mok for his answer; I just want to make it as clear as possible. In the Grafana interface you can create an organization. After that you can create some dashboards for this organization. So, there is a problem that you need to specify the organization for anonymous users. And it should be a real organization (for your Grafana). And anonymous users will be able to see only dashboards from this organization.

#################################### Anonymous Auth ########################## [auth.anonymous] # enable anonymous access enabled = true  # specify organization name that should be used for unauthenticated users org_name = ORGANIZATION 
like image 176
Jimilian Avatar answered Sep 30 '22 16:09

Jimilian


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 
like image 29
Mahadev Gouda Avatar answered Sep 30 '22 16:09

Mahadev Gouda