【发布时间】:2018-11-10 16:37:33
【问题描述】:
我正在使用REST API 将自定义指标推送到IBM 监控。
这似乎可行,因为查询数据会返回它(见下文)。
但是,无论我尝试在 Grafana 中配置什么指标,可视化总是以“无数据点”为空。
我应该如何处理 Grafana 中的自定义指标?
POST https://metrics.ng.bluemix.net/v1/metrics
[
{
"name":"test_metric",
"value":80,
"timestamp":1541866045
}
]
GET https://metrics.ng.bluemix.net/v1/metrics?target=*&from=1541865900&to=now
[
{
"target": "test_metric",
"datapoints": [
[
100,
1541865930
],
[
30,
1541865960
],
[
30,
1541865990
],
[
80,
1541866020
],
[
null,
1541866050
],
[
null,
1541866080
]
]
}
]
【问题讨论】:
-
希望您已经在 Grafana 中配置了指标查询。如果不按照提到的说明here
标签: ibm-cloud grafana ibm-cloud-monitoring