Default metrics available in CloudWatch after launching an EC2 instance

  • CPUCreditBalance
  • NetworkPacketsIn
  • NetworkOut
  • DiskReadOps
  • StatusCheckFailed_Instance
  • DiskReadBytes
  • NetworkIn
  • StatusCheckFailed
  • NetworkPacketsOut
  • DiskWriteBytes
  • CPUSurplusCreditsCharged
  • CPUCreditUsage
  • CPUSurplusCreditBalance
  • DiskWriteOps
  • StatusCheckFailed_System
  • CPUUtilization

Steps for custom metrics

  • Attach IAM Role to EC2. It will allow CloudWatch Agent, installed on the instance, send custom metrics to AWS CloudWatch.
  • Using provided examples, create JSON config files and save them to S3. This config files will be used during CloudWatch Agent installation. These files will let CloudWatch Agent know which custom metrics exactly you would like to send to AWS CloudWatch from your instance.
  • Install CloudWatch Agent by running provided bash, powershell scripts
  • Create SNS topics and add subscribers who will be notified if metric had crossed the threshold
  • Create CloudWatch Alarms using Cloudformation templates

Menu