- 最新
- 最多得票
- 最多評論
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 !!
相關內容
- 已提問 6 個月前
- 已提問 6 個月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 3 年前
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?