Skip to content

AWS: CloudWatch metrics for a warm pool of an ASG are not enabled #17775

@recollir

Description

@recollir

/kind bug

When a warm pool is enabled for an ASG on AWS there are currently no metrics about the warm pool available/enabled.

When going to the CloudWatch monitoring details tab of the ASG one can see

Enabled metrics
GroupTotalInstances, GroupInServiceInstances, GroupStandbyInstances, GroupDesiredCapacity, GroupTerminatingInstances, GroupMinSize, GroupPendingInstances, GroupMaxSize

This corresponds to the code in

func (b *AutoscalingGroupModelBuilder) buildAutoScalingGroupTask(c *fi.CloudupModelBuilderContext, name string, ig *kops.InstanceGroup) (*awstasks.AutoscalingGroup, error) {
t := &awstasks.AutoscalingGroup{
Name: fi.PtrTo(name),
Lifecycle: b.Lifecycle,
Granularity: fi.PtrTo("1Minute"),
Metrics: []string{
"GroupDesiredCapacity",
"GroupInServiceInstances",
"GroupMaxSize",
"GroupMinSize",
"GroupPendingInstances",
"GroupStandbyInstances",
"GroupTerminatingInstances",
"GroupTotalInstances",
},
InstanceProtection: fi.PtrTo(false),
}

The CloudWatch metrics available for a warm pool are described in https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-metrics.html#as-group-metrics as

WarmPoolMinSize
WarmPoolDesiredCapacity
WarmPoolPendingCapacity
WarmPoolTerminatingCapacity
WarmPoolWarmedCapacity
WarmPoolTotalCapacity
GroupAndWarmPoolDesiredCapacity
GroupAndWarmPoolTotalCapacity

They could be enabled when a warm pool is enabled for an ASG.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions