监控自动定标组内存使用情况 [英] Monitor memory usage for auto scaling group

查看:198
本文介绍了监控自动定标组内存使用情况的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在亚马逊云实例的自动伸缩群,我想监视所有实例的一些指标在自动缩放组。

I have an auto scaling group of instances in Amazon cloud and I want to monitor some metrics across all instances in auto-scaling group.

例如它会是不错的它在整个报告属于该组的所有实例的最大内存使用量的指标。因此,我将有机会来检测memleaks。

For example it would be nice to have a metric which reports the maximum memory usage across all instances that belong to the group. Thus I would have an opportunity to detect memleaks.

我知道,我可以监视通过负载均衡的度量一组,但我没有一个不希望。

I know that I can monitor a group via load balancer's metrics, but I don't have one and don't want to.

组指标描述此页面上的http://docs.aws.amazon.com/cli/latest/reference/autoscaling/enable-metrics-collection.html也不适宜。

Group metrics described on this page http://docs.aws.amazon.com/cli/latest/reference/autoscaling/enable-metrics-collection.html are also not suitable.

推荐答案

既然你没有指定你用我要给你我对Linux的解决方案,它的操作系统。如果您使用的是Windows同样的原则也适用。

Since you didn't specify which os you're using I'm going to give you my solution for linux. If you're using windows the same principles should apply.

您要做的就是创建一个脚本或使用现有的脚本,如的(AWS)周一脚本-perl的。开箱亚马逊没有像监视磁盘空间或内存资源,这是由于这一事实,即他们不能没有获得您的操作系统监视这些资源。我使用的是自家酿制的Python脚本,因为我还可以监视其他应用程序指标,但这些Perl脚本应该为你工作。这些脚本需要使用的crontab或任务调度程序,并且可以被设置为运行一次一分钟来运行。

What you want to do is create a script or use an existing script such as (AWS) mon-scripts-perl. Out of the box amazon does not monitor resources like disk space or memory this is due to the fact that they cannot monitor these resources without access to your OS. I use a home brewed python script because I also monitor other application metrics but these perl scripts should work for you. These scripts need to be run using crontab or task scheduler and can be set to run once a minute.

这篇关于监控自动定标组内存使用情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆