# How add iframe grafana dashboard

**URL:** <https://discourse.nodered.org/t/how-add-iframe-grafana-dashboard/13232>\
**Category:** Dashboard\
**Created:** [12 July 2019 21:16 UTC](https://discourse.nodered.org/t/how-add-iframe-grafana-dashboard/13232 "2019-07-12T21:16:14Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Folgore](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@Folgore](https://discourse.nodered.org/u/Folgore)\
**Post date:** [12 July 2019 21:16 UTC](https://discourse.nodered.org/t/how-add-iframe-grafana-dashboard/13232/1 "2019-07-12T21:16:14Z")

</div>

Hi guys, I want (if possible) view a grafana trend in my node-red dashboard. I have copy a iframe html text from my Grafana dashboard and copy in my node-red and receive a connection negate error.  
I have enable anonymous user in Grafana.

Any Idea?

Thank's

---

<div class="post-metadata">

**Author:** ![JayDickson](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jaydickson/32/90592_2.png) [@JayDickson](https://discourse.nodered.org/u/JayDickson)\
**Post date:** [12 July 2019 22:04 UTC](https://discourse.nodered.org/t/how-add-iframe-grafana-dashboard/13232/2 "2019-07-12T22:04:11Z")

</div>

I'm assuming you are using the dashboard template node? What code are you using? Does your grafana instance require authentication?

---

<div class="post-metadata">

**Author:** ![Folgore](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@Folgore](https://discourse.nodered.org/u/Folgore)\
**Post date:** [13 July 2019 15:42 UTC](https://discourse.nodered.org/t/how-add-iframe-grafana-dashboard/13232/3 "2019-07-13T15:42:38Z")

</div>

Hi.

1. T try, but i don't sure for the syntax. I have add the link in dashboard.
2. I have copy from grafana, the share/embed code.
3. I have enabled a anonymous user and from browser is ok.  
Thank's

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [13 July 2019 18:49 UTC](https://discourse.nodered.org/t/how-add-iframe-grafana-dashboard/13232/4 "2019-07-13T18:49:38Z")

</div>

Are Grafana and Node-RED running on the same device or different devices?

Also, check your browser's console for errors.

---

<div class="post-metadata">

**Author:** ![Folgore](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@Folgore](https://discourse.nodered.org/u/Folgore)\
**Post date:** [13 July 2019 19:08 UTC](https://discourse.nodered.org/t/how-add-iframe-grafana-dashboard/13232/5 "2019-07-13T19:08:19Z")

</div>

Yes, grafana and node-red running on the sane device.

Ok, i try After to check at the console

---

<div class="post-metadata">

**Author:** ![Folgore](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@Folgore](https://discourse.nodered.org/u/Folgore)\
**Post date:** [13 July 2019 21:19 UTC](https://discourse.nodered.org/t/how-add-iframe-grafana-dashboard/13232/6 "2019-07-13T21:19:29Z")

</div>

@TotallyInformation I have viewed in the consol log

Refused to display '[http://192.168.8.101:3000/d/SEkxNoZRz/home?orgId=1&refresh=1m&from=now-2d&to=now&fullscreen&panelId=4](http://192.168.8.101:3000/d/SEkxNoZRz/home?orgId=1&refresh=1m&from=now-2d&to=now&fullscreen&panelId=4)' in a frame because it set 'X-Frame-Options' to 'deny'.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [13 July 2019 21:22 UTC](https://discourse.nodered.org/t/how-add-iframe-grafana-dashboard/13232/7 "2019-07-13T21:22:44Z")

</div>

Ah ha. Thought so. Does that mean that Grafana is running on a different device?

---

<div class="post-metadata">

**Author:** ![Folgore](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@Folgore](https://discourse.nodered.org/u/Folgore)\
**Post date:** [13 July 2019 21:25 UTC](https://discourse.nodered.org/t/how-add-iframe-grafana-dashboard/13232/8 "2019-07-13T21:25:55Z")

</div>

Sorry, my raspberry has 192.168.8.101....but I have viewed from my pc browser

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [14 July 2019 23:05 UTC](https://discourse.nodered.org/t/how-add-iframe-grafana-dashboard/13232/9 "2019-07-14T23:05:59Z")

</div>

Not sure if you can wrangle headers when working with Dashboard?

---

<div class="post-metadata">

**Author:** ![Folgore](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@Folgore](https://discourse.nodered.org/u/Folgore)\
**Post date:** [17 July 2019 08:29 UTC](https://discourse.nodered.org/t/how-add-iframe-grafana-dashboard/13232/10 "2019-07-17T08:29:06Z")

</div>

I do not know

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [17 July 2019 08:39 UTC](https://discourse.nodered.org/t/how-add-iframe-grafana-dashboard/13232/11 "2019-07-17T08:39:23Z")

</div>

You need to change the [grafana configuration](https://grafana.com/docs/installation/configuration/#allow-embedding) to enable embedding.

---

<div class="post-metadata">

**Author:** ![Folgore](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@Folgore](https://discourse.nodered.org/u/Folgore)\
**Post date:** [17 July 2019 09:22 UTC](https://discourse.nodered.org/t/how-add-iframe-grafana-dashboard/13232/12 "2019-07-17T09:22:32Z")

</div>

Oh....thank's a lot, I try this.
