Embedding panel in iframe using free hosted plan

Hello Community,

Apologies if this is answered somewhere. I feel like I did my due diligence in searching for the solution but if I found it I didn’t understand it.

Here’s what I’m looking to do:

I’d like to embed a panel in an iframe. I’m using a hosted solution > 8.0 so I cannot set up anonymous access. Furthermore, since I’m using a hosted solution, as far as I can tell I can’t set up auth proxy. Although that may be different if I’m using a paid plan.

I would be comfortable having the login screen show up inside the iframe but ‘X-Frame-Options’ on the login page is set to ‘deny’.

I also took a look at other authorization options but they all seemed to need access to the ‘ini’ file similar to the auth proxy option.

Please advise. Even if the answer is “You can’t” it’ll prevent me from spending more time on this.

If you need more clarification let me know.

Take care

1 Like

Hello,

Enabling the allow_embed function to true is only available on Grafana Cloud Pro or Advanced tiers. It is not an available feature for Free. If you upgrade to Pro and want this enabled simply reach out to our Support team who can enable this for you.

Note that the embedded panels/dashboards will then be accessible only by those logged in to the hosted Grafana instance in the same browser. For security reasons we don’t enable public viewer (anonymous_access) on a hosted Grafana instance regardless of the tier you’re on. You can read more about the security implications of the anonymous feature here: Security | Grafana Labs

1 Like

Hi ximenaaliaguilla,

Thanks for the prompt response. It was the answer I was looking for.

One follow up question: is Auth Proxy | Grafana Labs available as a solution through Grafana Cloud (any tier) or only self-hosted solutions?

Take care

Update: Unfortunately, we no longer allow embedding of dashboards on Grafana Cloud at all. That feature requires access for anonymous users to your instance to work properly which we don’t allow in Grafana Cloud for security reasons. You can read more about the security implications of the anonymous feature here.

We now have a feature called public dashboard that may be of interest. It has some limitations which are described in the link. If you’d like this feature enabled, please reach out to Support.

2 Likes