16-CloudWatch

Module creating CloudWatch Alarms for monitoring ASG and ALB

Stage Modulemodules/16-cloudwatch

Created Alarms

AlarmMetricThreshold
MILU2-stage-api-asg-cpu-highCPUUtilization> 80%
MILU2-stage-api-asg-cpu-lowCPUUtilization< 20%
MILU2-stage-alb-5xxHTTPCode_ELB_5XX_Count> 10
MILU2-stage-alb-latencyTargetResponseTime> 5s

Metrics

Metrics used from AWS namespaces:

  • AWS/EC2 - CPUUtilization, NetworkIn/Out
  • AWS/ApplicationELB - HTTPCode_ELB_5XX_Count, TargetResponseTime, RequestCount
  • AWS/AutoScaling - GroupDesiredCapacity, GroupInServiceInstances

Warning

Currently alarms don't have SNS topic for notifications. Need to configure alarm_actions if you want to receive alerts.

Outputs

NameDescription
alarm_arnsList of all alarm ARNs