How to get Grafana graphs correctly in BasicUI Sitemap

Hi,

I want to integrate my grafana charts in my sitemap and have still 2 remeining issues:

  1. The chart / dashboard show always the complete grafana webpage - I want just to have the plain chart, ist there any possibility for that?

  2. On my iOS devices the chart / dashboard is not visible while on Windows and Android devices it is visible

enclosed my sitemap part:

Webview icon=weather url="http://192.168.178.202:3000/d/8IW_5xzgk/testdashboad?orgId=1&from=now-24h&tab=legend&refresh=5s\" width=\"450\" height=\"300\" frameborder=\"0\"" height=14

I cannot help you with your iOS problem but here is how to embed just the chart:

Step1

Step2

This URL will be for a fixed time range (a “snapshot” of what you are currently looking at) if you left “Current time range” on or the default time range if you turned off “Current time range”.
You will probably want to change/set the URL parameters for from, to and refresh so it shows exactly what you want.

The documentation for what you can set these parameters to is here:

e.g. If you want to match what you currently have you would use: &from=now-24h&to=now&refresh=5s

You then put this URL into your sitemap as you did before:

Webview icon=temperature url="http://192.168.1.2:3000/d-solo/QN7iK0gMz/example-dashboard?orgId=1&panelId=2&from=now-1d&to=now&refresh=1m" height=10
3 Likes

I followed you instructions and get:
192.168.1.2 refused your connection

i already change the value in the grafana.ini imbedded allowed to true

1 Like

Hi Peter,
Were you able to solve this? I am having the exact same problem.

“ip address” refused to connect

enable anonymous access and allow_embedding both set to true

Please help!