Skip to content

Commit

Permalink
Merge pull request #7046 from ministryofjustice/ifs-lb-alarm
Browse files Browse the repository at this point in the history
change metric to HTTPCode_ELB_5XX_Count
  • Loading branch information
roncitrus authored Jul 10, 2024
2 parents e32d074 + 7e53244 commit 8d2a448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/environments/cdpt-ifs/monitoring.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ resource "aws_cloudwatch_metric_alarm" "lb_5xx_errors" {
alarm_name = "lb-5xx-errors"
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = "1"
metric_name = "HTTPCode_Target_5XX_Count"
metric_name = "HTTPCode_ELB_5XX_Count"
namespace = "AWS/ApplicationELB"
period = "300"
statistic = "Sum"
threshold = "1"
alarm_description = "This metric monitors 5xx errors on the targets behind the load balancer"
alarm_description = "This metric monitors 5xx errors on the load balancer"
alarm_actions = [aws_sns_topic.lb_5xx_alarm_topic.arn]
dimensions = {
LoadBalancer = local.lb_short_arn
Expand Down

0 comments on commit 8d2a448

Please sign in to comment.