diff --git a/terraform/environments/delius-jitbit/monitoring_ecs.tf b/terraform/environments/delius-jitbit/monitoring_ecs.tf index 91377a16285..36f72dc07df 100644 --- a/terraform/environments/delius-jitbit/monitoring_ecs.tf +++ b/terraform/environments/delius-jitbit/monitoring_ecs.tf @@ -7,7 +7,8 @@ locals { resource "aws_cloudwatch_metric_alarm" "jitbit_cpu_over_threshold" { alarm_name = "jitbit-ecs-cpu-threshold" comparison_operator = "GreaterThanUpperThreshold" - evaluation_periods = "2" + datapoints_to_alarm = "3" + evaluation_periods = "5" threshold_metric_id = "e1" alarm_description = "Triggers alarm if ECS CPU crosses a threshold" insufficient_data_actions = [] @@ -28,7 +29,7 @@ resource "aws_cloudwatch_metric_alarm" "jitbit_cpu_over_threshold" { metric { metric_name = "CPUUtilization" namespace = "AWS/ECS" - period = "120" + period = "60" stat = "Average" dimensions = { @@ -43,7 +44,8 @@ resource "aws_cloudwatch_metric_alarm" "jitbit_cpu_over_threshold" { resource "aws_cloudwatch_metric_alarm" "jitbit_memory_over_threshold" { alarm_name = "jitbit-ecs-memory-threshold" comparison_operator = "GreaterThanUpperThreshold" - evaluation_periods = "2" + datapoints_to_alarm = "3" + evaluation_periods = "5" threshold_metric_id = "e1" alarm_description = "Triggers alarm if ECS memory crosses a threshold" insufficient_data_actions = [] @@ -64,7 +66,7 @@ resource "aws_cloudwatch_metric_alarm" "jitbit_memory_over_threshold" { metric { metric_name = "MemoryUtilization" namespace = "AWS/ECS" - period = "120" + period = "60" stat = "Average" dimensions = {