Skip to content

Commit

Permalink
Merge pull request #5189 from ministryofjustice/further-jitbit-alarm-…
Browse files Browse the repository at this point in the history
…tweaks

Further Jitbit anomaly alarm tweaks
  • Loading branch information
andrewmooreio authored Feb 27, 2024
2 parents 13b7f15 + 8be04f1 commit 10ade5e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions terraform/environments/delius-jitbit/monitoring_ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ locals {
resource "aws_cloudwatch_metric_alarm" "jitbit_cpu_over_threshold" {
alarm_name = "jitbit-ecs-cpu-threshold"
comparison_operator = "GreaterThanUpperThreshold"
evaluation_periods = "2"
datapoints_to_alarm = "3"
evaluation_periods = "5"
threshold_metric_id = "e1"
alarm_description = "Triggers alarm if ECS CPU crosses a threshold"
insufficient_data_actions = []
Expand All @@ -28,7 +29,7 @@ resource "aws_cloudwatch_metric_alarm" "jitbit_cpu_over_threshold" {
metric {
metric_name = "CPUUtilization"
namespace = "AWS/ECS"
period = "120"
period = "60"
stat = "Average"

dimensions = {
Expand All @@ -43,7 +44,8 @@ resource "aws_cloudwatch_metric_alarm" "jitbit_cpu_over_threshold" {
resource "aws_cloudwatch_metric_alarm" "jitbit_memory_over_threshold" {
alarm_name = "jitbit-ecs-memory-threshold"
comparison_operator = "GreaterThanUpperThreshold"
evaluation_periods = "2"
datapoints_to_alarm = "3"
evaluation_periods = "5"
threshold_metric_id = "e1"
alarm_description = "Triggers alarm if ECS memory crosses a threshold"
insufficient_data_actions = []
Expand All @@ -64,7 +66,7 @@ resource "aws_cloudwatch_metric_alarm" "jitbit_memory_over_threshold" {
metric {
metric_name = "MemoryUtilization"
namespace = "AWS/ECS"
period = "120"
period = "60"
stat = "Average"

dimensions = {
Expand Down

0 comments on commit 10ade5e

Please sign in to comment.