57 lines
1.1 KiB
JSON
57 lines
1.1 KiB
JSON
{
|
|
"name": "Group1",
|
|
"interval": "1m",
|
|
"rules": [
|
|
{
|
|
"for" : "5m",
|
|
"labels" : {
|
|
"label1" : "test-label"
|
|
},
|
|
"annotations" : {
|
|
"annotation" : "test-annotation"
|
|
},
|
|
"grafana_alert": {
|
|
"title": "Rule1",
|
|
"condition": "A",
|
|
"data": [
|
|
{
|
|
"refId": "A",
|
|
"datasourceUid": "__expr__",
|
|
"model": {
|
|
"expression": "0 > 0",
|
|
"type": "math"
|
|
}
|
|
}
|
|
],
|
|
"no_data_state": "NoData",
|
|
"exec_err_state": "Alerting"
|
|
}
|
|
},
|
|
{
|
|
"for" : "5m",
|
|
"labels" : {
|
|
"label1" : "test-label"
|
|
},
|
|
"annotations" : {
|
|
"annotation" : "test-annotation"
|
|
},
|
|
"grafana_alert": {
|
|
"title": "Rule2",
|
|
"condition": "A",
|
|
"data": [
|
|
{
|
|
"refId": "A",
|
|
"datasourceUid": "__expr__",
|
|
"model": {
|
|
"expression": "0 == 0",
|
|
"type": "math"
|
|
}
|
|
}
|
|
],
|
|
"no_data_state": "NoData",
|
|
"exec_err_state": "Alerting"
|
|
}
|
|
}
|
|
]
|
|
}
|