From fe0e711a76bc980fe1df1f32b4c3a66be13227f6 Mon Sep 17 00:00:00 2001 From: Steve Astels Date: Tue, 7 Nov 2023 14:14:12 -0500 Subject: [PATCH] delete bounce rate over 5% warning (#1006) Co-authored-by: Jumana B --- aws/eks/cloudwatch_alarms.tf | 17 +---------------- aws/eks/cloudwatch_log.tf | 13 ------------- 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/aws/eks/cloudwatch_alarms.tf b/aws/eks/cloudwatch_alarms.tf index 92a57310a..005fa8a1f 100644 --- a/aws/eks/cloudwatch_alarms.tf +++ b/aws/eks/cloudwatch_alarms.tf @@ -409,21 +409,6 @@ resource "aws_cloudwatch_metric_alarm" "logs-1-bounce-rate-1-minute-critical" { alarm_actions = [var.sns_alert_warning_arn] } -resource "aws_cloudwatch_metric_alarm" "logs-1-bounce-rate-1-minute-warning" { - count = var.cloudwatch_enabled ? 1 : 0 - alarm_name = "logs-1-warning-bounce-rate-3-minutes-warning" - alarm_description = "One service exceeding 5% bounce rate in 3 minutes" - comparison_operator = "GreaterThanOrEqualToThreshold" - evaluation_periods = "3" - metric_name = aws_cloudwatch_log_metric_filter.bounce-rate-warning[0].metric_transformation[0].name - namespace = aws_cloudwatch_log_metric_filter.bounce-rate-warning[0].metric_transformation[0].namespace - period = 60 - statistic = "Sum" - threshold = 1 - treat_missing_data = "notBreaching" - alarm_actions = [var.sns_alert_warning_arn] -} - resource "aws_cloudwatch_metric_alarm" "kubernetes-failed-nodes" { count = var.cloudwatch_enabled ? 1 : 0 alarm_name = "kubernetes-failed-nodes" @@ -729,4 +714,4 @@ resource "aws_cloudwatch_metric_alarm" "documentation-evicted-pods" { alarm_actions = [var.sns_alert_warning_arn] ok_actions = [var.sns_alert_warning_arn] insufficient_data_actions = [var.sns_alert_warning_arn] -} \ No newline at end of file +} diff --git a/aws/eks/cloudwatch_log.tf b/aws/eks/cloudwatch_log.tf index 170090f31..d1dc4702a 100644 --- a/aws/eks/cloudwatch_log.tf +++ b/aws/eks/cloudwatch_log.tf @@ -89,19 +89,6 @@ resource "aws_cloudwatch_log_metric_filter" "bounce-rate-critical" { } } -resource "aws_cloudwatch_log_metric_filter" "bounce-rate-warning" { - count = var.cloudwatch_enabled ? 1 : 0 - name = "bounce-rate-warning" - pattern = "warning bounce rate threshold of 5" - log_group_name = aws_cloudwatch_log_group.notification-canada-ca-eks-application-logs[0].name - - metric_transformation { - name = "bounce-rate-warning" - namespace = "LogMetrics" - value = "1" - } -} - resource "aws_cloudwatch_log_metric_filter" "api-evicted-pods" { count = var.cloudwatch_enabled ? 1 : 0 name = "api-evicted-pods"