Enables group metrics for the specified Auto Scaling group
Enables group metrics for the specified Auto Scaling group. For more information, see Monitoring CloudWatch metrics for your Auto Scaling groups and instances in the Amazon EC2 Auto Scaling User Guide.
autoscaling_enable_metrics_collection(AutoScalingGroupName, Metrics, Granularity)
AutoScalingGroupName |
[required] The name of the Auto Scaling group. |
Metrics |
Specifies which group-level metrics to start collecting. You can specify one or more of the following metrics:
The instance weighting feature supports the following additional metrics:
If you omit this parameter, all metrics are enabled. |
Granularity |
[required] The granularity to associate with the metrics to collect. The only valid
value is |
An empty list.
svc$enable_metrics_collection( AutoScalingGroupName = "string", Metrics = list( "string" ), Granularity = "string" )
## Not run: # This example enables data collection for the specified Auto Scaling # group. svc$enable_metrics_collection( AutoScalingGroupName = "my-auto-scaling-group", Granularity = "1Minute" ) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.