Skip to content
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

Timing problem when rendering specific dashboard #2

Open
amotl opened this issue Feb 5, 2019 · 1 comment
Open

Timing problem when rendering specific dashboard #2

amotl opened this issue Feb 5, 2019 · 1 comment

Comments

@amotl
Copy link
Contributor

amotl commented Feb 5, 2019

When trying to render https://weather.hiveeyes.org/grafana/d/of6c9qlmk/uba-ldi-dwd-studio-dev, it feels like grafanimate has some problem taking the snapshot at exactly the time after data loading has finished, see screenshot:

image

@amotl
Copy link
Contributor Author

amotl commented Feb 5, 2019

It looks like it works reasonably good on our machine (see attached logfile excerpt). While this dashboard seems to be rather heavy, grafanimate seems to be happily waiting for the synthesized all-data-received event (https://github.com/daq-tools/grafanimate/blob/c35b06cc4d7b9469d67083161c82c89b553cecf6/grafanimate/grafana-studio.js#L201-L244) before advancing to the next frame.

As the all-data-received event isn't offered by Grafana itself, I am aware there might be problems here, so I really would like to make this part as robust as possible.


2019-02-05 02:15:16,809 [grafanimate.scenarios         ] INFO   : Saved frame to ./var/spool/of6c9qlmk/of6c9qlmk_2018-10-06T05-00-00.png. Size: 213758
2019-02-05 02:15:16,810 [grafanimate.animations        ] INFO   : Datetime step: 2018-10-06 06:00:00
2019-02-05 02:15:16,810 [grafanimate.grafana           ] INFO   : Timewarp to 2018-10-06 06:00:00 -> 2018-10-06 06:59:59
2019-02-05 02:15:16,913 [grafanimate.grafana           ] INFO   : Waiting for "all-data-received" event

2019-02-05 02:15:29,061 [grafanimate.scenarios         ] INFO   : Saved frame to ./var/spool/of6c9qlmk/of6c9qlmk_2018-10-06T06-00-00.png. Size: 214795
2019-02-05 02:15:29,062 [grafanimate.animations        ] INFO   : Datetime step: 2018-10-06 07:00:00
2019-02-05 02:15:29,062 [grafanimate.grafana           ] INFO   : Timewarp to 2018-10-06 07:00:00 -> 2018-10-06 07:59:59
2019-02-05 02:15:29,150 [grafanimate.grafana           ] INFO   : Waiting for "all-data-received" event

2019-02-05 02:15:41,284 [grafanimate.scenarios         ] INFO   : Saved frame to ./var/spool/of6c9qlmk/of6c9qlmk_2018-10-06T07-00-00.png. Size: 215439
2019-02-05 02:15:41,284 [grafanimate.animations        ] INFO   : Datetime step: 2018-10-06 08:00:00
2019-02-05 02:15:41,284 [grafanimate.grafana           ] INFO   : Timewarp to 2018-10-06 08:00:00 -> 2018-10-06 08:59:59
2019-02-05 02:15:41,366 [grafanimate.grafana           ] INFO   : Waiting for "all-data-received" event

2019-02-05 02:15:54,521 [grafanimate.scenarios         ] INFO   : Saved frame to ./var/spool/of6c9qlmk/of6c9qlmk_2018-10-06T08-00-00.png. Size: 216375
2019-02-05 02:15:54,521 [grafanimate.animations        ] INFO   : Datetime step: 2018-10-06 09:00:00
2019-02-05 02:15:54,521 [grafanimate.grafana           ] INFO   : Timewarp to 2018-10-06 09:00:00 -> 2018-10-06 09:59:59
2019-02-05 02:15:54,605 [grafanimate.grafana           ] INFO   : Waiting for "all-data-received" event

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant