CmdID / aws / aws autoscaling
aws autoscaling disable-metrics-collection
Disables group metrics collection for the specified Auto Scaling group. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To disable metrics collection for an Auto Scaling group
The following disable-metrics-collection example disables collection of the GroupDesiredCapacity metric for the specified Auto Scaling group.
aws autoscaling disable-metrics-collection --auto-scaling-group-name my-asg --metrics GroupDesiredCapacityIdentify--auto-scaling-group-nameThe name of the Auto Scaling group.--metricsIdentifies the metrics to disable.This command produces no output.
For more information, see Monitor CloudWatch metrics for your Auto Scaling groups and instances in the Amazon EC2 Auto Scaling User Guide.
Options
--auto-scaling-group-nameThe name of the Auto Scaling group.--metricsIdentifies the metrics to disable.