【发布时间】: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