Manage detailed monitoring for your EC2 instances - Amazon Elastic Compute Cloud

Manage detailed monitoring for your EC2 instances

Amazon CloudWatch provides two categories of monitoring: basic monitoring and detailed monitoring. By default, your instance is configured for basic monitoring. You can optionally enable detailed monitoring to help you more quickly identify and act on operational issues. You can enable or turn off detailed monitoring at launch or when the instance is running or stopped.

Enabling detailed monitoring on an instance does not affect the monitoring of its attached EBS volumes. For more information, see Amazon CloudWatch metrics for Amazon EBS.

The following table highlights the differences between basic monitoring and detailed monitoring for your instances.

Monitoring type Description Charges
Basic monitoring

Status check metrics are available in 1-minute periods. All other metrics are available in 5-minute periods.

No charge.
Detailed monitoring All metrics, including status check metrics, are available in 1-minute periods. To get this level of data, you must specifically enable it for the instance. For the instances where you've enabled detailed monitoring, you can also get aggregated data across groups of similar instances. You are charged per metric that Amazon EC2 sends to CloudWatch. You are not charged for data storage. For more information, see Paid tier and Example 1 - EC2 Detailed Monitoring on the Amazon CloudWatch pricing page.

Required permissions

To enable detailed monitoring for an instance, your user must have permission to use the MonitorInstances API action. To turn off detailed monitoring for an instance, your user must have permission to use the UnmonitorInstances API action.

Enable detailed monitoring at launch

Use the following procedures to enable detailed monitoring at launch. By default, your instance uses basic monitoring.

Console
To enable detailed monitoring when launching an instance

When launching an instance using the Amazon EC2 console, under Advanced details, select the Detailed CloudWatch monitoring check box.

AWS CLI
To enable detailed monitoring when launching an instance

Use the run-instances command with the --monitoring flag to enable detailed monitoring.

aws ec2 run-instances --image-id ami-09092360 --monitoring Enabled=true...

Manage detailed monitoring

Use the following procedures to manage detailed monitoring for a running or stopped instance.

Console
To manage detailed monitoring for an instance
  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the navigation pane, choose Instances.

  3. Select the instance.

  4. Choose Actions, Monitor and troubleshoot, Manage detailed monitoring.

  5. On the Detailed monitoring page, for Detailed monitoring, do one of the following:

    • Detailed monitoring – Select Enable.

    • Basic monitoring – Clear Enable.

  6. Choose Confirm.

AWS CLI
To enable detailed monitoring for an instance

Use the following monitor-instances command to enable detailed monitoring for the specified instances.

aws ec2 monitor-instances --instance-ids i-1234567890abcdef0
To turn off detailed monitoring for an instance

Use the following unmonitor-instances command to turn off detailed monitoring for the specified instances.

aws ec2 unmonitor-instances --instance-ids i-1234567890abcdef0