Memory Utilization for auto scaling group AWS

+1 vote

I am Setting up AWS autoscaling, and while setting 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.

http://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 autosacling with below command as suggested in above doc it gives 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.
when i check this error on internet few people said it may be error of instance-id in /var/tmp/aws-mon i checked that is not the issue.

Any help is appreciated.

Aug 30, 2018 in AWS by bug_seeker
• 14,970 points
176 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

Here is link to AWS support with same question.

Here is link to source code of the Perl script. I'm not sure if it can be publicated here, so open the ZIP file go to mon-put-instance-data.pl, and search for reported. From that to ifs it appear that the error occurs if you did not provided verify, nor autoscaling group name. Since first is only for testing - we have winner. Please provide autoscaling group name parameter...

Well, there are no that parameter, but if you look closer you can see that some lines before reported from find, there is query for that. So... your instance has no access.

Googling with CloudWatchClient::get_auto_scaling_group gives this result. From there you can read that you should grant your instance permission to publish data to CloudWatch...

If you have other questions, please - ask. I'll edit this answer, so we will have something more or less complete - not only for me.

answered Aug 30, 2018 by Priyaj
• 56,120 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
20 views
0 votes
1 answer
0 votes
1 answer

Creating auto scaling group across different purchase options

Yes, you create a single auto scaling group to scale ...READ MORE

answered Mar 12 in AWS by Archana
• 5,360 points
7 views
0 votes
1 answer

Pass account id of an AWS sub account using a variable as an argument in CloudWatch Alarm Actions with python (boto3)?

Python String and Integer concatenation >>> print("arn:aws:swf:us-east-2:{0}:action/actions/AWS_EC2.InstanceId.Stop/1.0".format(acccnum)) arn:aws:swf:us-east-2:12312312312312:action/actions/AWS_EC2.InstanceId.Stop/1.0 >>> print("arn:aws:swf:us-east-2:" ...READ MORE

answered Oct 5, 2018 in AWS by Priyaj
• 56,120 points
70 views
0 votes
1 answer

Memory utilization for auto-scaling groups --AWS

This is a working solution if your ...READ MORE

answered Aug 8, 2018 in AWS by Priyaj
• 56,120 points
54 views
0 votes
1 answer

Do you get charged for a security group in AWS EC2?

There is no charge applicable to Security ...READ MORE

answered Jul 18, 2018 in AWS by Priyaj
• 56,120 points
17 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.