Skip to content

Commit

Permalink
Further Jitbit anomaly alarm tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmooreio committed Feb 27, 2024
1 parent 2440eae commit 8be04f1
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 8be04f1

Please sign in to comment.