Grafana:简单的json数据源实现

时间:2017-03-31 16:30:47

标签: python grafana

有没有人在python中为grafana写过json数据源?我正在努力写作和理解流程。

我正在寻找类似这样的东西 - https://github.com/bergquist/fake-simple-json-datasource/blob/master/index.js但是在python中。

2 个答案:

答案 0 :(得分:5)

我刚从grafana的python数据源上传了一个片段,它使用pandas + flask并且很容易扩展。

https://gist.github.com/linar-jether/95ff412f9d19fdf5e51293eb0c09b850

答案 1 :(得分:1)

要了解流程,请尝试查看通用实现... https://grafana.com/plugins/grafana-simple-json-datasource