【问题标题】:Parsing JSON Response in Grafana在 Grafana 中解析 JSON 响应
【发布时间】:2020-01-12 08:29:57
【问题描述】:

我有一个 Kubernetes 环境并使用 Grafana 可视化从 Prometheus 流式传输的指标。 我有未提供给 Prometheus 的应用程序计数器。但是,我可以使用 curl 命令将它们视为 JSON 对象。

http://10.0.0.1:8081/api/events/

响应格式如下:

{
{
  "ID":   "001",
  "source": "pageloads",
  "summary":  "high failure counts",
  "severity": "major"
},
{
  "ID":   "003",
  "source": "profile_counts",
  "summary":  "profile count doesn't match number of groups",
  "severity": "minor"
},
{
  "ID":   "002",
  "source": "number of subscribers",
  "summary":  "profiles higher than subscribers",
  "severity": "critical"
}
}

在 Grafana 中是否有插件可以查询这些数据 (http://10.0.0.1:8081/api/events/)?

谢谢

【问题讨论】:

    标签: kubernetes prometheus grafana grafana-templating


    【解决方案1】:

    您应该能够使用AJAX Panel plugin 将其可视化。

    【讨论】:

      猜你喜欢
      • 2013-02-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-27
      相关资源
      最近更新 更多