The image is called test.png in this example and has to be accessible to grafana. This is why its in /usr/share/grafana/public/img/
. To have permissions on the file, try to create the file first and get ownership as your user (pi in this example):
sudo touch /usr/share/grafana/public/img/test.png
sudo chown pi /usr/share/grafana/public/img/test.png
In the grafana settings (default in /etc/grafana/grafana.ini
), be sure to set disable_sanitize_html
to true, so the html actually works. Probably needs to restart the grafana-service.
Write the following into the “Content” field of the text panel. You can change the 60000 to any millisecond refresh time you want.