简体   繁体   English

为什么AWS CloudWatch没有Autoscaling组的内存使用率指标

[英]Why AWS CloudWatch does not have Memory usage metric for Autoscaling group

I am trying to create a graph for memory usage of an autoscaling group but I discovered that there is no such metric. 我正在尝试为自动缩放组的内存使用创建一个图表,但我发现没有这样的度量标准。 Although there is Memory usage metric but it is for individual instances. 虽然存在内存使用情况指标,但它适用于单个实例。 It is useless since instances keep on changing in autoscaling group. 它是无用的,因为实例在自动缩放组中不断变化。 I want to know the technical reason why AWS cloudwatch didn't provide it. 我想知道AWS cloudwatch没有提供它的技术原因。 Moreover I want to know the work around to achieve it. 此外,我想知道实现它的工作。

The metrics that AWS provides can be collected at the hypervisor level. 可以在管理程序级别收集AWS提供的度量标准。 But memory metrics (like disk metrics) is from the OS level. 但内存指标(如磁盘指标)来自操作系统级别。 So it is a custom metric that you have to periodically push to CloudWatch. 因此,您必须定期推送到CloudWatch,这是一个自定义指标。

Monitoring Memory and Disk Metrics for Amazon EC2 Linux Instances shows how to push your metrics to CloudWatch. 监控Amazon EC2的内存和磁盘指标Linux实例显示了如何将指标推送到CloudWatch。 Install the scripts (along with credentials if you are not using IAM role) before creating your AMI and you are set. 在创建AMI之前安装脚本(如果您没有使用IAM角色,还要提供凭据)并且已设置。 Each instance in AS will start pushing its memory metric to CloudWatch. AS中的每个实例都将开始将其内存指标推送到CloudWatch。 Not sure how useful it will be for you. 不确定它对你有多大用处。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM