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

EnableMetricsCollection

Description

Enables monitoring of group metrics for the Auto Scaling group specified in AutoScalingGroupName. You can specify the list of enabled metrics with the Metrics parameter.

Auto Scaling metrics collection can be turned on only if the InstanceMonitoring flag, in the Auto Scaling group's launch configuration, 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 legal granularity is "1Minute".

Type: String

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

Required: Yes

Metrics.member.N

The list of metrics to collect. If no metrics are specified, all metrics are enabled. The following metrics are supported:

  • GroupMinSize

  • GroupMaxSize

  • GroupDesiredCapacity

  • GroupInServiceInstances

  • GroupPendingInstances

  • GroupStandbyInstances

  • GroupTerminatingInstances

  • GroupTotalInstances

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