Skip to content

Commit

Permalink
chore: adjust evaulation periods for latency alarms (#314)
Browse files Browse the repository at this point in the history
Update the evaluation periods for the latency alarms to only trigger if
the API has been consistently slow for 5 minutes.

This is to limit the number of false-positives being triggered by
API deploys.
  • Loading branch information
patheard authored Dec 4, 2023
1 parent 0e221b2 commit a3b9228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terragrunt/aws/api/cloudwatch_api.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ resource "aws_cloudwatch_metric_alarm" "api-gateway-above-maximum-latency-warnin
alarm_name = "api-gateway-above-maximum-latency-warning"
alarm_description = "API gateway latency between request and response above 1500ms"
comparison_operator = "GreaterThanThreshold"
evaluation_periods = "1"
evaluation_periods = "5"
metric_name = "Latency"
namespace = "AWS/ApiGateway"
period = "60"
Expand All @@ -128,7 +128,7 @@ resource "aws_cloudwatch_metric_alarm" "api-gateway-above-maximum-latency-critic
alarm_name = "api-gateway-above-maximum-latency-critical"
alarm_description = "API gateway latency between request and response above 3000ms"
comparison_operator = "GreaterThanThreshold"
evaluation_periods = "1"
evaluation_periods = "5"
metric_name = "Latency"
namespace = "AWS/ApiGateway"
period = "60"
Expand Down

0 comments on commit a3b9228

Please sign in to comment.