eksctl icon indicating copy to clipboard operation
eksctl copied to clipboard

Enable ASG Metrics Collection for Managed Nodegroups

Open trombini77 opened this issue 1 year 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