Has anyone written a json data source for grafana in python? I'm struggling with writing functions and understanding the flow.
I am looking for something like this - https://github.com/bergquist/fake-simple-json-datasource/blob/master/index.js but in python.
I've just uploaded a snippet from our python datasource for grafana, it uses pandas
+ flask
and very easy to extend.
https://gist.github.com/linar-jether/95ff412f9d19fdf5e51293eb0c09b850
To understand the flow, try looking at the generic implementation ... https://grafana.com/plugins/grafana-simple-json-datasource
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With