简体   繁体   English

单个状态面板的Grafana简单JSON响应

[英]Grafana Simple JSON response for Single Stat Panel

I'm using Grafana 3.0 beta 5 and Simple JSON datasource plugin. 我正在使用Grafana 3.0 beta 5和Simple JSON数据源插件。 I'm trying to implement a backend in Python that gathers business information from my ERP. 我正在尝试在Python中实现一个后端,该后端从我的ERP收集业务信息。

I know that Grafana Simple JSON expects 4 REST methods: 我知道Grafana Simple JSON需要4种REST方法:

  • / /
  • query 询问
  • search 搜索
  • annotation 注解

The Simple JSON datasource plugin has not too much documentation, I know that it's on early development. Simple JSON数据源插件没有太多文档,我知道它正在早期开发中。

I'm looking for someone that could point me for some JSON response sample to the Single Stat panel of Grafana. 我正在寻找可以为我指向JSON样本的Grafana的Single Stat面板的人。

Another thing, Grafana probably passes some parameters to the query method, I'm wondering which one are those parameters. 另一件事,Grafana可能会将一些参数传递给查询方法,我想知道那些参数是哪个。

Thanks in advance, 提前致谢,

Best regards 最好的祝福

The expected response would be similar to this - https://gist.github.com/tral/1fe649455fe2de9fb8fe except that you would have only one "target". 预期的响应将类似于此-https://gist.github.com/tral/1fe649455fe2de9fb8fe,除了您只有一个“目标”。

Grafana passes the options object to the query method. Grafana将options对象传递给查询方法。 Here's what it would look like for a single stat panel. 这是单个统计面板的外观。 格拉法纳测试

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM