Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconexamples
file-type-iconmodules
file-type-iconagents
file-type-iconalarms
file-type-iconalb-alarms
file-type-iconalb-target-group-alarms
file-type-iconasg-cpu-alarms
file-type-iconasg-disk-alarms
file-type-iconasg-memory-alarms
file-type-iconec2-cpu-alarms
file-type-iconec2-disk-alarms
file-type-iconec2-memory-alarms
file-type-iconecs-cluster-alarms
file-type-iconecs-service-alarms
file-type-iconecs-service-with-alb-alarms
file-type-iconelasticache-memcached-alarms
file-type-iconelasticache-redis-alarms
file-type-iconelasticsearch-alarms
file-type-iconelb-alarms
file-type-iconlambda-alarms
file-type-iconrds-alarms
file-type-iconroute53-health-check-alarms
file-type-iconscheduled-job-alarm
file-type-iconsns-to-slack
file-type-iconsqs-alarms
file-type-iconREADME.md
file-type-iconlogs
file-type-iconmetrics
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md
file-type-iconterraform-cloud-enterprise-private-module-...

Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconexamples
file-type-iconmodules
file-type-iconagents
file-type-iconalarms
file-type-iconalb-alarms
file-type-iconalb-target-group-alarms
file-type-iconasg-cpu-alarms
file-type-iconasg-disk-alarms
file-type-iconasg-memory-alarms
file-type-iconec2-cpu-alarms
file-type-iconec2-disk-alarms
file-type-iconec2-memory-alarms
file-type-iconecs-cluster-alarms
file-type-iconecs-service-alarms
file-type-iconecs-service-with-alb-alarms
file-type-iconelasticache-memcached-alarms
file-type-iconelasticache-redis-alarms
file-type-iconelasticsearch-alarms
file-type-iconelb-alarms
file-type-iconlambda-alarms
file-type-iconrds-alarms
file-type-iconroute53-health-check-alarms
file-type-iconscheduled-job-alarm
file-type-iconsns-to-slack
file-type-iconsqs-alarms
file-type-iconREADME.md
file-type-iconlogs
file-type-iconmetrics
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md
file-type-iconterraform-cloud-enterprise-private-module-...
CloudWatch

CloudWatch

Send all metrics to CloudWatch, including those not visible to the EC2 hypervisor. Create dashboards and alerts as code.

Code Preview

Preview the Code

mobile file icon

README.md

down

Alarm modules

This folder contains modules that configure CloudWatch Alarms to go off and email or SMS you when something is going wrong. The modules are:

  • asg-cpu-alarms: An alarm that goes off if CPU usage in an Auto Scaling Group (ASG) is too high.
  • asg-disk-alarms: An alarm that goes off if disk usage in an Auto Scaling Group (ASG) is too high.
  • asg-memory-alarms: An alarm that goes off if memory usage in an Auto Scaling Group (ASG) is too high.
  • ec2-cpu-alarms: An alarm that goes off if CPU usage for an EC2 Instance is too high.
  • ec2-disk-alarms: An alarm that goes off if disk usage for an EC2 Instance is too high.
  • ec2-memory-alarms: An alarm that goes off if memory usage for an EC2 Instance is too high.
  • ecs-cluster-alamrs: Alarms for an ECS cluster that go off if CPU or memory usage is too high across the cluster.
  • ecs-service-alamrs: Alarms for an ECS service that go off if CPU or memory usage is too high for this service.
  • elb-alarms: A set of ELB alarms that go off if the latency gets too high, or there are too many 5xx errors, or too few requests are coming in.
  • lambda-alarms: An alarm that goes off when a lambda function breaches an associated metric.
  • rds-alarms: A set of RDS alarms that go off if the CPU usage, number of connections, or latency gets too high or if the available memory or disk space gets too low.
  • route53-health-check-alarms: Monitor a given domain (e.g. example.com) using Route 53 and trigger an alarm if that domain is down or unresponsive.
  • scheduled-job-alarm: An alarm that goes off if a scheduled job (e.g. a cron job) fails to run.
  • sqs-alarms: Alarms that go off if the number of visible messages is too high or age of oldest message surpasses the threshold.

Click on each module above to see its documentation. Head over to the examples folder for examples.

Information regarding tags for metric alarms

Currently you can view tags related to metric alarms only with AWS CLI by using:

aws cloudwatch list-tags-for-resource --resource-arn alarm_arn

Tags associated with a metric alarm are not propagated with the alarm payload when the alarm is triggered.

Questions? Ask away.

We're here to talk about our services, answer any questions, give advice, or just to chat.

Ready to hand off the Gruntwork?