46 lines
1.3 KiB
HCL
46 lines
1.3 KiB
HCL
resource "grafana_rule_group" "rule_group_2b12784d0e1454cd" {
|
|
org_id = 1
|
|
name = "group_simplified_routing"
|
|
folder_uid = "e4584834-1a87-4dff-8913-8a4748dfca79"
|
|
interval_seconds = 10
|
|
|
|
rule {
|
|
name = "test"
|
|
condition = "C"
|
|
|
|
data {
|
|
ref_id = "A"
|
|
|
|
relative_time_range {
|
|
from = 600
|
|
to = 0
|
|
}
|
|
|
|
datasource_uid = "grafanacloud-prom"
|
|
model = "{\"editorMode\":\"code\",\"expr\":\"vector(1)\",\"instant\":true,\"intervalMs\":1000,\"legendFormat\":\"__auto\",\"maxDataPoints\":43200,\"range\":false,\"refId\":\"A\"}"
|
|
}
|
|
data {
|
|
ref_id = "C"
|
|
|
|
relative_time_range {
|
|
from = 0
|
|
to = 0
|
|
}
|
|
|
|
datasource_uid = "__expr__"
|
|
model = "{\"conditions\":[{\"evaluator\":{\"params\":[1],\"type\":\"gt\"},\"operator\":{\"type\":\"and\"},\"query\":{\"params\":[\"C\"]},\"reducer\":{\"params\":[],\"type\":\"last\"},\"type\":\"query\"}],\"datasource\":{\"type\":\"__expr__\",\"uid\":\"__expr__\"},\"expression\":\"A\",\"intervalMs\":1000,\"maxDataPoints\":43200,\"refId\":\"C\",\"type\":\"threshold\"}"
|
|
}
|
|
|
|
no_data_state = "NoData"
|
|
exec_err_state = "Error"
|
|
for = "1m"
|
|
annotations = {}
|
|
labels = {}
|
|
is_paused = false
|
|
|
|
notification_settings {
|
|
contact_point = "email"
|
|
}
|
|
}
|
|
}
|