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.

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html

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.

Command

./mon-put-instance-data.pl --mem-util --mem-used --mem-avail --auto-scaling=only

Error:

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

Any help is appreciated.

Aug 6, 2018 in AWS by datageek
• 2,390 points
51 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

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

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

Then run,

./mon-put-instance-data.pl --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.

REF: https://forums.aws.amazon.com/thread.jspa?threadID=117783

answered Aug 8, 2018 by Priyaj
• 56,100 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
• 3,770 points
18 views
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,520 points
48 views
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,130 points
86 views
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,240 points
977 views
+1 vote
3 answers

How to get ARN for s3 Bucket using aws cli .

An ARN is a non-opaque, constructible identifier, ...READ MORE

answered Aug 16, 2018 in AWS by Priyaj
• 56,100 points
676 views
+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
• 56,100 points
166 views
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
• 56,100 points
32 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.