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
• 15,510 points
3,259 views

1 answer to this question.

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
• 58,020 points

Related Questions In AWS

0 votes
1 answer

How to create or update tags for an Auto Scaling group in AWS?

Hi@akhtar, You can create or update tags for the specified ...READ MORE

answered Nov 26, 2020 in AWS by MD
• 95,460 points
1,988 views
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,170 points

edited Jun 16, 2023 by Khan Sarfaraz 1,235 views
0 votes
1 answer

How to attach an instance to an Auto Scaling group in AWS?

Hi@akhtar, You can attach one or more EC2 instances ...READ MORE

answered Nov 26, 2020 in AWS by MD
• 95,460 points
1,893 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
• 58,020 points
1,583 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
• 58,020 points
1,808 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
• 58,020 points
13,064 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP