How can I change allow embedding with Azure deployment of Grafana? Is there another way other than to SSH into the VM and modify grafana.ini?

  • What Grafana version and what operating system are you using?

v8.1.1
OS: Windows

  • What are you trying to achieve?

Embed a dashboard panel into a webpage.

  • How are you trying to achieve it?

By modifying the grafana.ini file to allow for embedding.

  • What happened?

I have Azure deployment of Grafana, so I can only access Grafana on a specific port once the Azure VM running Grafana is turned on. I can see in the configuration that embedding is set to ‘false’. Is there another way to change this other than having to SSH or RDP into the Azure VM and manually modifying the grafana.ini file? Could this be done with API and API keys instead?

  • What did you expect to happen?

Having grafana snapshot embedded into an iframe on my webpage.

  • Can you copy/paste the configuration(s) that you are having problems with?

[allow_embedding false]

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

13.93.2.21 refused to connect

  • Did you follow any online instructions? If so, what is the URL?

Embedding Grafana in a website or Iframe - Easy Steps in 2020 (itpanther.com)

You can set environment variables instead of having to edit the file.

But this still requires that I get into the VM. I take it there is no way to do it from within the Grafana app even as admin?

I am only accessing Grafana from, say, port 3000 on my browser.

Correct, not editable within the app (or API to my knowledge). You could use the Docker container and then make the environment variables part of your deploy. Not familiar with Azure, but you may be able to set environment variables within their console that will pass in to the VM.