- Newest
- Most votes
- Most comments
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 !!
Relevant content
- Accepted Answerasked 9 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago
If I understand you correctly then you are saying that setting
detailed_monitoring=True
in the launch template (https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_ec2/LaunchTemplate.html) that I pass to a Batch's ComputeResource (https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_batch_alpha/ComputeResources.html) should cause the auto scaling group created by Batch to have auto scaling group metrics enabled. I just tried it and did not observe that behavior (auto scaling group metrics are still disabled).To be clear, the metrics I am interested in are
GroupDesiredCapacity
,GroupStandbyInstances
, etc, described here: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-cloudwatch-monitoring.htmIs it possible to configure AWS Batch so that it will create the auto scaling group for its compute environment with these metrics enabled?