MarcusCalidus / marcuscalidus-svg-panel

Grafana panel for displaying metric sensitive SVG images using the snap svg library
MIT License
62 stars 28 forks source link

disappearing data attribute #48

Open ethansiegl opened 4 years ago

ethansiegl commented 4 years ago

Sometimes after an error/exception has been thrown in the onHandleMetric code, the data which is passed to the javascript disappears. In other words, when trying to extract data from ctrl.data[0].datapoints, the value will be empty after an exception where previously it had a value.

The only way to restore the data is to delete the panel and create a new one.

I have seen this behavior when using the SVG panel with an elasticsearch datasource

MarcusCalidus commented 4 years ago

Is there a way to reliably reproduce this behaviour? The only way I currently think this could happen is when the onDataReceived Event within the control is not raised anymore. Which version of Grafana are you using?