Memory utilization for auto-scaling groups --AWS

0 votes

While i was setting up AWS autoscaling group, and scaling policy i ran into this problem.

I wanted to use memory as a parameter, so i installed CLoudwatch's script for memory monitoring from below link.

When i use it for simple instance it works fine, but when i do it for auto-scaling with below command as given  in above doc i am getting an error.


./ --mem-util --mem-used --mem-avail --auto-scaling=only


WARNING: The Auto Scaling metrics will not be reported this time.

Any help is appreciated.

Aug 6, 2018 in AWS by datageek
• 2,490 points

1 answer to this question.

0 votes

This is a working solution if your instance belongs to Autoscaling group.

rm -rf /var/tmp/aws-mon/

Then run,

./ --mem-util --auto-scaling=only

When the monitoring script runs it caches the instance_id under /var/tmp/aws-mon.
One of the filters it uses when getting the auto scaling group name is the instance id. The TTL on this is 6 hours, so if your AMI has this cache, the query will use the wrong instance id for up to 6 hours after the instance is created which results in it failing to retrieve the auto scaling group name.


answered Aug 8, 2018 by Priyaj
• 57,660 points

Related Questions In AWS

0 votes
1 answer

How do I disable detailed monitoring for instances in an auto scaling group in a CloudFormation template?

The property you want is InstanceMonitoring, not ...READ MORE

answered Aug 31, 2018 in AWS by Archana
• 4,150 points
0 votes
1 answer
+3 votes
1 answer

aws cloudformation for atomic stack-update

When you perform a stack update, only ...READ MORE

answered Mar 27, 2018 in AWS by DareDev
• 6,850 points
0 votes
3 answers
0 votes
2 answers
0 votes
1 answer

AWS Placement groups

Placements groups, as the documentation states, is ...READ MORE

answered Apr 26, 2018 in AWS by Flying geek
• 3,260 points
0 votes
1 answer

Want to use an AWS Cognito User Pool without putting a password(for an easier approach)

Currently, AWS Cognito is not supporting passwordless ...READ MORE

answered May 4, 2018 in AWS by Cloud gunner
• 4,650 points
+1 vote
1 answer

Memory Utilization for auto scaling group AWS

Here is link to AWS support with same ...READ MORE

answered Aug 30, 2018 in AWS by Priyaj
• 57,660 points
0 votes
1 answer

Target groups in AWS for Network Load Balancers

Ypu can change the port definition in ...READ MORE

answered Nov 13, 2018 in AWS by Priyaj
• 57,660 points