larona-epict-panel icon indicating copy to clipboard operation
larona-epict-panel copied to clipboard

Background URL independent of Grafana location

Open AgaAndr opened this issue 5 years ago • 4 comments

Hi,

thank you very much for the ePict plugin. I have been trying out the plugin with images in different locations. I was only able to see an image in case it was located in my grafana-directory in subdirectory public, e.g.

Background URL: public/img/MyImg.jpg Background URL: public/MyImg.jpg

I was not able to see an image stored in any other location on my local disk. Am I missing something or is this per design? Unfortunatelly I would really need to show images from a custom directory...

Thanks a lot and best regards!

AgaAndr avatar May 15 '19 15:05 AgaAndr

Hello, thanks for your feedback !

Your image must be accessible by the web-browser. Generally, the image is hosted on a web server, then you paste the URL in the field, something like http://myWebServer/myImage.jpg

If that's not what you expected, can you tell me more about your setup ? Where is the server, where are the clients, and what's the server OS ?

Best regards

LucasArona avatar May 15 '19 15:05 LucasArona

Hi,

currently I am doing local tests, with only one computer (Windows 10) - the grafana-server is running on localhost, I connect locally via Chrome, also my images are also on the same machine. Later the setup should be with grafana-server and images on the same machine and remote client.

As URL I have used the path to local images, which are accessibe when URL is pasted directly in Chrome browser. From ePict there are accessible when placed in Grafana directory, but not from any other directory...

Example1 Example2

AgaAndr avatar May 15 '19 16:05 AgaAndr

Ok, I see, this is because the browser prevents the web page from accessing local resources.

However, you can use any webserver to serve your images, you can upload the images online if you don't want to setup a webserver (imgur.com, ...)

However, in a future release, I'll try to allow the user to select a local image and then store it in the dashboard (don't know if it'll work at the moment).

LucasArona avatar May 15 '19 18:05 LucasArona

Hello, how is the status with the local resources?? Thanks!

Uli1900 avatar Oct 24 '22 14:10 Uli1900