【发布时间】:2018-11-09 20:43:49
【问题描述】:
有一个 Grafana 仪表板,里面有一个面板。是否可以添加(或定义)API?
【问题讨论】:
标签: grafana grafana-api
有一个 Grafana 仪表板,里面有一个面板。是否可以添加(或定义)API?
【问题讨论】:
标签: grafana grafana-api
要创建新警报或修改它们,您需要更新包含警报的仪表板 json。使用dashboard API 并编辑特定的面板警报部分。您需要在那里定义一个警报。例如:
"alert": {
"conditions": [
{
"type": "query",
"query": {
"params": [
"A",
"5m",
"now"
]
},
"reducer": {
"type": "avg",
"params": []
},
"evaluator": {
"type": "gt",
"params": [
null
]
},
"operator": {
"type": "and"
}
}
],
【讨论】: