Skip to content

Commit

Permalink
Setting service bounce rate alarm to 12 hour period (#1084)
Browse files Browse the repository at this point in the history
* Setting service bounce rate alarm to 12 hour period

* fixing naming as this is not a per service alert
  • Loading branch information
ben851 authored Dec 28, 2023
1 parent da8d770 commit 30ca383
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aws/eks/cloudwatch_alarms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -415,15 +415,15 @@ resource "aws_cloudwatch_metric_alarm" "logs-1-scanfiles-timeout-1-minute-warnin
alarm_actions = [var.sns_alert_warning_arn]
}

resource "aws_cloudwatch_metric_alarm" "logs-1-bounce-rate-1-minute-critical" {
resource "aws_cloudwatch_metric_alarm" "logs-1-bounce-rate-critical" {
count = var.cloudwatch_enabled ? 1 : 0
alarm_name = "logs-1-critical-bounce-rate-1-minute-warning"
alarm_description = "One service exceeding 10% bounce rate in 1 minute"
alarm_name = "logs-1-bounce-rate-critical"
alarm_description = "Bounce rate exceeding 10% in a 12 hour period"
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = "1"
metric_name = aws_cloudwatch_log_metric_filter.bounce-rate-critical[0].metric_transformation[0].name
namespace = aws_cloudwatch_log_metric_filter.bounce-rate-critical[0].metric_transformation[0].namespace
period = 60
period = 60 * 60 * 12
statistic = "Sum"
threshold = 1
treat_missing_data = "notBreaching"
Expand Down

0 comments on commit 30ca383

Please sign in to comment.