Interface CustomMetricTargetTrackingPolicyArgs

Represents a CloudWatch metric of your choosing for a target tracking scaling policy to use with Amazon EC2 Auto Scaling.

To create your customized metric specification:

  • Add values for each required parameter from CloudWatch. You can use an existing metric, or a new metric that you create. To use your own metric, you must first publish the metric to CloudWatch. For more information, see Publish-Custom-Metrics in the Amazon CloudWatch User Guide.

  • Choose a metric that changes proportionally with capacity. The value of the metric should increase or decrease in inverse proportion to the number of capacity units. That is, the value of the metric should decrease when capacity increases.

interface CustomMetricTargetTrackingPolicyArgs {
    disableScaleIn?: any;
    estimatedInstanceWarmup?: any;
    metric: Metric;
    targetValue: Input<number>;
}

Hierarchy (view full)

Properties

disableScaleIn?: any

Indicates whether scaling in by the target tracking scaling policy is disabled. If scaling in is disabled, the target tracking scaling policy doesn't remove instances from the Auto Scaling group. Otherwise, the target tracking scaling policy can remove instances from the Auto Scaling group. Defaults to [false] if unspecified.

estimatedInstanceWarmup?: any

The estimated time, in seconds, until a newly launched instance will contribute CloudWatch metrics. Without a value, AWS will default to the group's specified cooldown period.

metric: Metric

The metric to track

targetValue: Input<number>

The target value for the metric.

Generated using TypeDoc