You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
at 1, I discovered that @fbeneventi used the add_panel_reader() routine on this recipe the other day. However, I haven't been able to figure out how this is supposed to work as I also wasn't able to find any reference in simple-json-datasource2.
What subsystem of Grafana would request this endpoint? I am feeling a bit silly on this and dearly hope that @linar-jether or @fbeneventi could shed some light on this.
To answer myself, I was able to discover @linar-jether's introduction to that feature at 1:
To serve HTML panels, use add_panel_reader(name, lambda query_str, ts_range: <html_content>) to register a function that returns a HTML string for a given query string and time range. To query it, use the AJAX Panel for Grafana.
It would be sweet to have an example in the repository demoing that feature.
Hi there,
at 1, I discovered that @fbeneventi used the
add_panel_reader()
routine on this recipe the other day. However, I haven't been able to figure out how this is supposed to work as I also wasn't able to find any reference insimple-json-datasource
2.What subsystem of Grafana would request this endpoint? I am feeling a bit silly on this and dearly hope that @linar-jether or @fbeneventi could shed some light on this.
With kind regards,
Andreas.
Footnotes
https://gist.github.com/fbeneventi/9264d8760f847ad5acf0a4bcdab8d87f#file-simple_python_datasource-py-L281 ↩
https://github.com/grafana/simple-json-datasource ↩
The text was updated successfully, but these errors were encountered: