Chapter 5. Monitoring Amazon EC2 Instances

In this chapter, we will cover recipes for:

  • Collecting EC2 metrics using AWS CloudWatch
  • Collecting custom metrics from EC2 instances
  • Monitoring costs using CloudWatch
  • Sending an e-mail based on a CloudWatch alarm
  • Using CloudWatch Logs

Introduction

Amazon CloudWatch is AWS's monitoring service. It can be used to monitor your applications and AWS resources. AWS CloudWatch works with all key AWS services including EC2, RDS, DynamoDB, Elastic MapReduce, Kinesis, CloudSearch, and so on. CloudWatch provides several out-of-the-box metrics such as CPU utilization, network utilization, and disk I/O metrics from EC2 instances. However, you can also collect custom metrics from your applications.

AWS Management Console can ...

Get Amazon EC2 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.