Skip to main content

Embedding Grafana

For embedding Grafana in your application, you need to enable anonymous access and set the role to Viewer.

sudo nano /etc/grafana/grafana.ini

Check the following lines:

/etc/grafana/grafana.ini
allow_embedding = true
auth.anonymous
enabled = true
org_name = <<org name>>
org_role = Viewer

Save the file and restart Grafana.

sudo systemctl restart grafana-server
sudo systemctl status grafana-server