Dashboard embed in a website?

Hello all. I was wondering if is it possible to embed my dashboard in a website. I’ve seen a video where he embed a pannel, but I would like to embed the full dashboard, with the filters and everything. Is it possible? If so, how can I do it?

check out this article by the esteemed @davidallen5

1 Like

Yea I’ve read this article few minutes before your aswer, but the console is giving me an error:
Refused to display ‘http://localhost:3000/’ in a frame because it set ‘X-Frame-Options’ to ‘deny’.
How can I solve this?

1 Like
1 Like

I already have it as “true”. I also have the anonymous view configured, but still:
“Refused to display localhost:3000 in a frame because it set ‘X-Frame-Options’ to ‘deny’”

I’ve seen a GitHub issue where someone configures the default.ini file too. I’ve already done this, as the security pannel in grafana shows:
image
But I’m still getting the same error.

How can I solve this?

did you restart after making the changes to the ini?

Yes I did, with sudo service grafana-server restart, several times indeed :confused:

is your front end site where you are trying to embed http or https?

Hello, it’s me again.

I managed to solve this. I don’t know if its a bug or I was doing something wrong, but this is how i solved it:

As @sowdenraymond told me, I modified the Grafana.ini file to set “true” the embed iframe. This did not solve it, so I went to ( allow_embedding does not change X-Frame-Options · Issue #52364 · grafana/grafana (github.com) . This also did not solve my problem, so what I’ve done is to restart the device where I host the Grafana server, set everything to “false”, then again restart, set everything to “true”, restart again and then it worked lol.
I do not understand what happened, but at least I can tell you that allow_embedding = true and having the anonymous user configured is a must, the rest is up to your luck xD.

Thanks @sowdenraymond for your interest and help, maybe you can explain this :rofl:

1 Like