New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dashboards with source panel reloads every panel when scrolling to not yet shown one. #65627
Comments
do you think you could try and replicate this on our public sandbox, https://play.grafana.org? 🙏 |
I cant create new dashboard there, nor save the one I got linked to, could please explain how to show you the changes? |
But basically you can create new panel on the dashboard as source use dashboard and choose server requests panel. Then in transformations use transformation called "Filter by name" and filter only time and web server 1. Do this for example 10 times, so that panels would not fit in the screen, and filter different server each time (and that cycle again from 1). You should see the problem as well there. |
So I have worked on this and found this guide for sharing dashboards. https://grafana.com/docs/grafana/latest/troubleshooting/send-panel-to-grafana-support/#send-a-panel-to-grafana-labs-support. Unfortunatelly, even though, i have tried to include lots of data, there is no visible loading, because it is not the same as when the data is retrieved from the database. However I will still include the dashboard here (just rename from share.txt to share.json and import the dashboard). There is "Reproduced with embedded data" panel which acts as a source panel from which all the panels below get the data. This way data are retrieved from db only once, even though used in multiple panels. Here is the dashboard: But to show you exactly the real behaviour I have recorded video, where you can clearly see, that when I move onto not-yet-visible panel, then even the one already loaded is being RELOADED, even though the time span did not change. This is very unperformant. The worst thing is, that not only the previous panel gets reload, but every panel on the page gets reloaded everytime one scrolls down to the one not yet seen. Screencast.from.2023-07-13.16-43-54.webmI think this scenario has a lots of potential, just this little bug makes it less usable. I would be grateful if someone could look at this... @zuchka |
I have the same issue (using Grafana v8.5.20) and it happens to any data source. To reproduce just:
Looking in the Network tab I can see the query being sent again and taking the same amount of time to execute again. So it's really submitting the query instead of using the data that is already in the browser. This idea of sharing the data source is great but seems that there is a bug in Grafana... |
What happened:
Hi, on a long dashboard with several panels, there are some that I cant see right away, I have to scroll down and such panels usually load when I scroll to them, which is perfectly fine. Panels previously loaded are not reloaded at such event. However in a case of sourcing the first panel in other panels, every panel is reloaded everytime I scroll down on a new panel.
In case of a big dashboard these reloads of all panels at the same time could be very resource demaning. On the other hand If only newly shown panel would load the dashboard would be just fine. This does not happen on a dashboard that does not source other panels.
What you expected to happen:
I expected only a newly scrolled to panel to load, not reload every panel on the dashboard. Same as on dashboards that does not source other panel.
How to reproduce it (as minimally and precisely as possible):
I have a table in postgres with timescaledb:
I have nameless transparent small (that way almost hidden) panel on my dashboard with this query:
I then use this panel in other panels like this:
and I do these transformations in each:
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: