[英]Parsing JSON Response in Grafana
I have a Kubernetes environment and using Grafana to visualise metrics streamed from Prometheus.我有一个 Kubernetes 环境并使用 Grafana 来可视化从 Prometheus 流式传输的指标。 I have application counters which are not fed to Prometheus.
我有未提供给 Prometheus 的应用程序计数器。 However I am able to view them as a JSON object by using a curl command.
但是,我可以使用 curl 命令将它们视为 JSON 对象。
http://10.0.0.1:8081/api/events/ http://10.0.0.1:8081/api/events/
Response has the following format:响应具有以下格式:
{
{
"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"
}
}
Is there a plugin to query this data ( http://10.0.0.1:8081/api/events/ ) in Grafana? Grafana 中是否有插件可以查询此数据( http://10.0.0.1:8081/api/events/ )?
Thank you谢谢
您应该能够使用AJAX 面板插件将其可视化。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.