Webview in sitemap shows nothing for local Grafana URL

Hi!

i cannot get my sitemap to show my grafana chart.
if i click it from within VS Code it opens the url as desired …

Any ideas?

sitemap Elektroauto label="Elektroauto" 
{
    Frame   {
        Webview item=Auto_SOC icon="none" url="http://192.168.1.80:3000/d-solo/sLQWhJ8nz/elektroauto?orgId=1&from=now-1d&to=now&refresh=1m&panelId=2" height=5
            }
}

did you check:

sudo nano /etc/grafana/grafana.ini

if there is:

[security]
...
allow_embedding = true

it not set to true i earlier had the problem that no charts where shown

to make the changed settings work you have to:

sudo service grafana-server restart

Hello

i was manged to open it (read only) and it is set to false …
i am running grafana in a docker container so there will be more effort to get this running.

once i come up with a solution i’ll post it here as well.
Thanks for pointing that out!

I had to configure global variables to be considered while building the docker image since configuration in the ini is not possible after building. here’s my working config:

  grafana:
    image: grafana/grafana
    container_name: grafana
    ports:
      - 3000:3000
    links: 
      - influxdb
    environment:
      GF_AUTH_ANONYMOUS_ENABLED: 'true'
      GF_SECURITY_ALLOW_EMBEDDING: 'true'
    volumes:
      - ./grafana:/var/lib/grafana
    restart: always