16-CloudWatch
Module creating CloudWatch Alarms for monitoring ASG and ALB
Stage Modulemodules/16-cloudwatch
Created Alarms
| Alarm | Metric | Threshold |
|---|---|---|
| MILU2-stage-api-asg-cpu-high | CPUUtilization | > 80% |
| MILU2-stage-api-asg-cpu-low | CPUUtilization | < 20% |
| MILU2-stage-alb-5xx | HTTPCode_ELB_5XX_Count | > 10 |
| MILU2-stage-alb-latency | TargetResponseTime | > 5s |
Metrics
Metrics used from AWS namespaces:
AWS/EC2- CPUUtilization, NetworkIn/OutAWS/ApplicationELB- HTTPCode_ELB_5XX_Count, TargetResponseTime, RequestCountAWS/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
| Name | Description |
|---|---|
| alarm_arns | List of all alarm ARNs |