From 4f3df3586db352777fb62dd5e4242ea8f24ef323 Mon Sep 17 00:00:00 2001 From: Andy Price Date: Mon, 25 Nov 2024 13:24:17 +0000 Subject: [PATCH] SP-2447 - Increase threshold/evaluation periods for high number of requests alarm #minor --- terraform/environment/alerts.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/terraform/environment/alerts.tf b/terraform/environment/alerts.tf index 6f7b71f3..69e26646 100644 --- a/terraform/environment/alerts.tf +++ b/terraform/environment/alerts.tf @@ -34,11 +34,11 @@ resource "aws_cloudwatch_metric_alarm" "rest_api_high_count" { alarm_description = "Number of requests for LPA Data Rest API in ${terraform.workspace}" alarm_name = "lpa-${local.environment}-rest-api-high-count" comparison_operator = "GreaterThanThreshold" - datapoints_to_alarm = 1 + datapoints_to_alarm = 2 dimensions = { ApiName = "lpa-${terraform.workspace}" } - evaluation_periods = 1 + evaluation_periods = 5 insufficient_data_actions = [] metric_name = "Count" namespace = "AWS/ApiGateway" @@ -46,7 +46,7 @@ resource "aws_cloudwatch_metric_alarm" "rest_api_high_count" { period = 60 statistic = "Sum" tags = {} - threshold = 500 + threshold = 1000 treat_missing_data = "notBreaching" }