AWS Batch: How to enable metrics on EC2 auto scaling groups?

0

AWS Batch creates auto scaling groups for managed EC2 compute environments. I would like to monitor the auto scaling behavior but these auto scaling groups are created with CloudWatch metrics disabled.

I have not found a way to configure a compute environment such that its auto scaling groups get created with metrics enabled. Is there a way to do this?

Ralf J
已提問 2 年前檢視次數 718 次
1 個回答
0

Hello,

Interesting question !!

For Autoscaling Groups, AWS does collect metrics for the instances within an autoscaling group.

By default, basic monitoring is enabled for the autoscaling group. If you want detailed CloudWatch monitoring, you can enable that as well in the launch template: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html#advanced-settings-for-your-launch-template.

More information here: https://docs.aws.amazon.com/autoscaling/ec2/userguide/enable-as-instance-metrics.html

From there, you can then look at both Autoscaling metrics and EC2 metrics: https://docs.aws.amazon.com/autoscaling/ec2/userguide/viewing-monitoring-graphs.html

The metrics you see at the autoscaling group level will be aggregated for the ec2 instances within the autoscaling group and can be viewed here: https://console.aws.amazon.com/ec2autoscaling/

Hope this helps !!

profile pictureAWS
支援工程師
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南