eksctl icon indicating copy to clipboard operation
eksctl copied to clipboard

Enable ASG Metrics Collection for Managed Nodegroups

Open trombini77 opened this issue 3 years ago • 4 comments

What help do you need?

I´m using the eksctl version 0.127.0 and I see in documentation that unmanaged nodegroup has the option to enable the Auto Scaling Group Metrics. Still, it is possible to enable it in managed nodegroups too as is possible to see in the following screens after created a managed nodegroup:

image

image

Here is the unmanaged nodegroup block that enables the feature:

    asgMetricsCollection:
      - granularity: 1Minute
        metrics:
          - GroupMinSize
          - GroupMaxSize
          - GroupDesiredCapacity
          - GroupInServiceInstances
          - GroupPendingInstances
          - GroupStandbyInstances
          - GroupTerminatingInstances
          - GroupTotalInstances

PS. What is possible to see in the screens is a simple flag (turn on/off) without the need to set each metric as unmanaged nodegroup uses. So I believe that this blog post from AWS that shows how to activate it when used aws eks create-nodegroup with --tags ASG_METRICS_COLLLECTION_ENABLED=TRUE to create a managed nodegroup maybe shows the way where the Golang AWS lib can do it, or not ¨\o/¨

trombini77 avatar Jan 31 '23 04:01 trombini77

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Mar 03 '23 02:03 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Mar 09 '23 02:03 github-actions[bot]

@trombini77 thanks for opening this issue. This feature is not currently supported in eksctl for MNGs. We will aim to add this feature for MNGs.

Himangini avatar Mar 09 '23 14:03 Himangini

Hi @trombini77 I did some digging into this and it seems like that flag in the AWS Console for managed nodegroups that you're seeing is currently only editable via autoscaling API. That article on AWS merely presents a handy workaround. As this is not yet part of cloudformation API for managed nodegroups, we'll have to stall this feature until this aws issue is completed.

TiberiuGC avatar Mar 16 '23 16:03 TiberiuGC

@trombini77 - we can probably close this as a result of https://github.com/aws/containers-roadmap/issues/762#issuecomment-2229122915.

TiberiuGC avatar Jul 18 '24 10:07 TiberiuGC