:doc:`AutoScaling <../../autoscaling>` / Client / disable_metrics_collection

**************************
disable_metrics_collection
**************************



.. py:method:: AutoScaling.Client.disable_metrics_collection(**kwargs)

  

  Disables group metrics collection for the specified Auto Scaling group.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollection>`_  


  **Request Syntax**
  ::

    response = client.disable_metrics_collection(
        AutoScalingGroupName='string',
        Metrics=[
            'string',
        ]
    )
    
  :type AutoScalingGroupName: string
  :param AutoScalingGroupName: **[REQUIRED]** 

    The name of the Auto Scaling group.

    

  
  :type Metrics: list
  :param Metrics: 

    Identifies the metrics to disable.

     

    You can specify one or more of the following metrics:

     

    
    * ``GroupMinSize``
     
    * ``GroupMaxSize``
     
    * ``GroupDesiredCapacity``
     
    * ``GroupInServiceInstances``
     
    * ``GroupPendingInstances``
     
    * ``GroupStandbyInstances``
     
    * ``GroupTerminatingInstances``
     
    * ``GroupTotalInstances``
     
    * ``GroupInServiceCapacity``
     
    * ``GroupPendingCapacity``
     
    * ``GroupStandbyCapacity``
     
    * ``GroupTerminatingCapacity``
     
    * ``GroupTotalCapacity``
     
    * ``WarmPoolDesiredCapacity``
     
    * ``WarmPoolWarmedCapacity``
     
    * ``WarmPoolPendingCapacity``
     
    * ``WarmPoolTerminatingCapacity``
     
    * ``WarmPoolTotalCapacity``
     
    * ``GroupAndWarmPoolDesiredCapacity``
     
    * ``GroupAndWarmPoolTotalCapacity``
    

     

    If you omit this property, all metrics are disabled.

     

    For more information, see `Amazon CloudWatch metrics for Amazon EC2 Auto Scaling <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-metrics.html>`__ in the *Amazon EC2 Auto Scaling User Guide*.

    

  
    - *(string) --* 

    

  
  :returns: None
  **Exceptions**
  
  *   :py:class:`AutoScaling.Client.exceptions.ResourceContentionFault`

  

  **Examples**

  This example disables collecting data for the GroupDesiredCapacity metric for the specified Auto Scaling group.
  ::

    response = client.disable_metrics_collection(
        AutoScalingGroupName='my-auto-scaling-group',
        Metrics=[
            'GroupDesiredCapacity',
        ],
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  