Public Dashboard Grafana in external link without login [TUTORIAL]

After reading many threads on different websites, I was able to solve my problem.

I wanted to make one of my dashboards public so that people at my company can see it without logging in.

This dashboard was made using ZABBIX.


First thing:

  • Leave Anonymous

open grafana.ini

vim /etc/grafana/grafana.ini

and change the values

[auth.anonymous]
# enable anonymous access
enabled = true

Don’t forget to remove the “;”

Restart Grafana-Server


Copy the access link and send it to people within the company.


If you get a connction refused error, modify the same file grafana.ini

[security]
# disable creation of admin user on first start of grafana
;disable_initial_admin_creation = false

# default admin user, created on startup
;admin_user = admin

# default admin password, can be changed before first start of grafana, or in profile settings
;admin_password = admin

allow_embedding = true

It worked for me.

2 Likes

nice work :+1:

curious–can you share what Grafana version you tested this on?

I’m using Grafana v8.3.1

And my Zabbix server is 5.0.18

2 Likes

I have Grafana.ini edited just like those, but Firefox does not want to open the inserted graph, you need a new window. There is no need to log in but it does not appear straight. It is interested that it doesn’t do it on older Grafana, but it doesn’t. I’ll give the links. | Benyho rosnička - amatérská meteorologická stanice | | Benyho rosnička - amatérská meteorologická stanice |

Hi there, how exactly did you manage to get the embedded graphs to work on your website? I’m trying to do the same thing, but I have to host grafana on a Pi and use ngrok to open a http tunnel. Did you have to do the same or is there some secret to this? Thanks!

We can able to expose grafana dashboards to external world without login by setting below variables in grafan.ini file.

# set cookie SameSite attribute. defaults to `lax`. can be set to "lax", "strict", "none" and "disabled"
cookie_samesite = none

# set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false.
allow_embedding = true

[auth.anonymous]
# enable anonymous access
enabled = true

# specify organization name that should be used for unauthenticated users
org_name = Main Org.

# specify role for unauthenticated users
org_role = Viewer

# mask the Grafana version number for unauthenticated users
hide_version = false
1 Like

Thank you very much for this contribution. Make sure you replace the value of org_name with the actual name of the organisation without login. It worked perfectly for me with these changes in the configuration, I use Grafana v10.0.1 (5a30620b85).

set cookie SameSite attribute. defaults to lax. can be set to “lax”, “strict”, “none” and “disabled”

cookie_samesite = none

set to true if you want to allow browsers to render Grafana in a ,