Skip to content

Disable Metrics Collection

autoscaling_disable_metrics_collection R Documentation

Disables group metrics collection for the specified Auto Scaling group

Description

Disables group metrics collection for the specified Auto Scaling group.

Usage

autoscaling_disable_metrics_collection(AutoScalingGroupName, Metrics)

Arguments

AutoScalingGroupName

[required] The name of the Auto Scaling group.

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 in the Amazon EC2 Auto Scaling User Guide.

Value

An empty list.

Request syntax

svc$disable_metrics_collection(
  AutoScalingGroupName = "string",
  Metrics = list(
    "string"
  )
)

Examples

## Not run: 
# This example disables collecting data for the GroupDesiredCapacity
# metric for the specified Auto Scaling group.
svc$disable_metrics_collection(
  AutoScalingGroupName = "my-auto-scaling-group",
  Metrics = list(
    "GroupDesiredCapacity"
  )
)

## End(Not run)