Skip to content

Commit

Permalink
Merge pull request #187 from ministryofjustice/SP-2447
Browse files Browse the repository at this point in the history
SP-2447 - Increase threshold/evaluation periods for high number of requests alarm #minor
  • Loading branch information
sixdaysandy authored Nov 25, 2024
2 parents 456648f + 4f3df35 commit 93adc39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terraform/environment/alerts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ 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"
ok_actions = [data.aws_sns_topic.rest_api.arn]
period = 60
statistic = "Sum"
tags = {}
threshold = 500
threshold = 1000
treat_missing_data = "notBreaching"
}

Expand Down

0 comments on commit 93adc39

Please sign in to comment.