MON-301 add support for excluding on event alert

This commit is contained in:
Quentin Manfroi 2018-10-02 14:57:04 +02:00
parent 50811d98de
commit 3441472052

View File

@ -5,6 +5,10 @@ output "query_alert" {
output "service_check" { output "service_check" {
description = "The full filtering pattern including braces for query alert monitor type" 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, ",", "\",\"")}\")"}" 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")}"}"
}