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,440 points
149 views

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,

./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,900 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,090 points
56 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,810 points
77 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,160 points
346 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,280 points
1,543 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,900 points
567 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,900 points
80 views