Dalvany / dalvany-image-panel

Image panel for Grafana
MIT License
16 stars 3 forks source link

Refreshing image pull periodically #45

Closed sindelsch closed 12 months ago

sindelsch commented 2 years ago

Hi,

I am trying to display images in your panel via urls stored in a mysql database. It is possible to refresh the query periodically, but the shown pictures are only refreshed when I refresh the browser (The step when the images are pulled via the url).

Would it be possible to also do this periodically? Maybe even connected to running the query.

Thanks in advance!

Dalvany commented 2 years ago

Hello @sindelsch I don't think it is possible, when query is rerun, grafana tell my panel to redraw accordingly.

For your second point, you can tell grafana to refresh periodically using the top right combobox. image

Does this fit your usecase ?

sindelsch commented 2 years ago

Unfortunately not. It only works when I refresh the browser tab. Tried it on chrome and firefox.

For me the workaround was just automatically refreshing the tab. Works fine for me but still strange.

Dalvany commented 2 years ago

Could it be because of some cache ? I have another question, just to be sure of how things are set up. You have URL stored in your database, in Grafana you have a data source that queries the database and the panel use that to display image ?

Dalvany commented 2 years ago

@sindelsch I can't reproduce the bug, I try setting up a webservice that serves random images, reduce grafana's refresh to 5s and it works. Can you check if there is some cache involved ?

Dalvany commented 12 months ago

I close this issue.