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
demandé il y a 2 ans680 vues
1 réponse
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
INGÉNIEUR EN ASSISTANCE TECHNIQUE
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions