Skip to content

Commit f685f8e

Browse files
committed
Adjusting anomaly detection on ALB latency
1 parent 00c081e commit f685f8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cloutwatch-alarms.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ resource "aws_cloudwatch_metric_alarm" "alb_latency" {
113113
# alarm_name = "${data.aws_iam_account_alias.current.account_alias}-ecs-${var.name}-alb-latency"
114114
alarm_name = "${data.aws_iam_account_alias.current.account_alias}-ecs-${var.name}-latency"
115115
comparison_operator = "GreaterThanUpperThreshold"
116-
evaluation_periods = "4"
116+
evaluation_periods = "2"
117117
datapoints_to_alarm = "2"
118118
threshold_metric_id = "ad1"
119119
alarm_description = "Load balancer latency for application"
@@ -134,8 +134,8 @@ resource "aws_cloudwatch_metric_alarm" "alb_latency" {
134134
metric {
135135
metric_name = "TargetResponseTime"
136136
namespace = "AWS/ApplicationELB"
137-
period = "300"
138-
stat = "p99"
137+
period = "900"
138+
stat = "p90"
139139

140140
dimensions = {
141141
LoadBalancer = aws_lb.ecs[0].arn_suffix

0 commit comments

Comments
 (0)