MON-301 add support for excluding on event alert
This commit is contained in:
parent
50811d98de
commit
3441472052
@ -5,6 +5,10 @@ output "query_alert" {
|
||||
|
||||
output "service_check" {
|
||||
description = "The full filtering pattern including braces for query alert monitor type"
|
||||
#value = "over.(\"${replace(local.including, ",", "\",\"")}\").exclude(\"${replace(local.excluding, ",", "\",\"")}\")"
|
||||
value = ".over(\"${replace(local.including, ",", "\",\"")}\")${local.excluding == "" ? "" : ".exclude(\"${replace(local.excluding, ",", "\",\"")}\")"}"
|
||||
}
|
||||
|
||||
output "event_alert" {
|
||||
description = "The full filtering pattern for event alert monitor type"
|
||||
value = "tags:${replace(local.including, "aaa", "aaaa")}${local.excluding == "" ? "" : " excluded_tags:${replace(local.excluding, "aa", "aaaa")}"}"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user