From e7bbcb9ae44fb1410d6a1e0004188d496d709c5a Mon Sep 17 00:00:00 2001 From: surendra-yelavarthi Date: Tue, 5 Mar 2024 14:49:42 -0600 Subject: [PATCH] mongodb alerts: added NORMALIZED_SYSTEM_CPU_STEAL alert --- .../aws/mongodb-atlas-alerts/variables.tf | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/terraform-modules/aws/mongodb-atlas-alerts/variables.tf b/terraform-modules/aws/mongodb-atlas-alerts/variables.tf index efcf6f63e..6bce605dc 100644 --- a/terraform-modules/aws/mongodb-atlas-alerts/variables.tf +++ b/terraform-modules/aws/mongodb-atlas-alerts/variables.tf @@ -269,6 +269,26 @@ variable "default_alerts" { # If is "metric_threshold_config" set, then "threshold_config" is not needed threshold_config = [] }, + { + event_type = "OUTSIDE_METRIC_THRESHOLD" + enabled = true + notification = [] + matcher = [] + # This can only be a list of 1 + # If is "metric_threshold_config" set, then "threshold_config" is not needed + metric_threshold_config = [ + { + metric_name = "NORMALIZED_SYSTEM_CPU_STEAL" + operator = "GREATER_THAN" + threshold = 15 + units = "RAW" + mode = "AVERAGE" + } + ] + # This can only be a list of 1 + # If is "metric_threshold_config" set, then "threshold_config" is not needed + threshold_config = [] + }, ] description = "description" }