Alerting: Fix HCL export for alerts with non-zero "for" field. (#76739)
* Alerting: Fix HCL export for alerts with non-zero "for" field. Fixes #76734 * fix tests --------- Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
This commit is contained in:
co-authored by
Yuri Tseretyan
parent
8985f79aab
commit
a0476741f2
@@ -44,6 +44,7 @@ resource "grafana_rule_group" "rule_group_0000" {
|
||||
|
||||
no_data_state = "NoData"
|
||||
exec_err_state = "Alerting"
|
||||
for = "2m"
|
||||
is_paused = false
|
||||
}
|
||||
rule {
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
],
|
||||
"noDataState": "NoData",
|
||||
"execErrState": "Alerting",
|
||||
"for": "0s",
|
||||
"for": "2m",
|
||||
"isPaused": false
|
||||
},
|
||||
{
|
||||
@@ -114,4 +114,4 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ groups:
|
||||
type: math
|
||||
noDataState: NoData
|
||||
execErrState: Alerting
|
||||
for: 0s
|
||||
for: 2m
|
||||
isPaused: false
|
||||
- title: reduced testdata query - 2
|
||||
condition: B
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"interval": "10s",
|
||||
"rules": [
|
||||
{
|
||||
"for": "2m",
|
||||
"grafana_alert": {
|
||||
"title": "prom query with SSE - 2",
|
||||
"condition": "condition",
|
||||
|
||||
Reference in New Issue
Block a user