Auto Scaling
API Reference (API Version 2011-01-01)
Did this page help you?  Yes | No |  Tell us about it...
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.

EnableMetricsCollection

Description

Enables monitoring of the specified metrics for the specified Auto Scaling group.

You can only enable metrics collection if InstanceMonitoring in the launch configuration for the group is set to True.

Request Parameters

For information about the common parameters that all actions use, see Common Parameters.

AutoScalingGroupName

The name or ARN of the Auto Scaling group.

Type: String

Length constraints: Minimum length of 1. Maximum length of 1600.

Required: Yes

Granularity

The granularity to associate with the metrics to collect. Currently, the only valid value is "1Minute".

Type: String

Length constraints: Minimum length of 1. Maximum length of 255.

Required: Yes

Metrics.member.N

One or more of the following metrics:

  • GroupMinSize

  • GroupMaxSize

  • GroupDesiredCapacity

  • GroupInServiceInstances

  • GroupPendingInstances

  • GroupStandbyInstances

  • GroupTerminatingInstances

  • GroupTotalInstances

If you omit this parameter, all metrics are enabled.

Note

The GroupStandbyInstances metric is not returned by default. You must explicitly request it when calling EnableMetricsCollection.

Type: String list

Length constraints: Minimum length of 1. Maximum length of 255.

Required: No