Skip to content

Send memory and cpu usage metrics to Amazon CloudWatch

Notifications You must be signed in to change notification settings

sanjioh/cloudwatch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

#AWC EC2 custom metrics for CloudWatch

Send memory and cpu usage metrics to Amazon CloudWatch

##Required: https://github.com/giampaolo/psutil

##Usage:

1. Clone cloudwatch.py to EC2 linux server
2. Create a boto credentials file /etc/boto.cfg
[Credentials]
aws_access_key_id = <aws access key>
aws_secret_access_key = <aws access secret>
3. confugure crontab $ crontab -e
* * * * * /usr/bin/python /path/to/cloudwatch.py

##Real CPU usage for t2 instances Standard "CPU Utilization" metrics shows maximum 20% for t2.medium instance on full load and empty "CPU Credit" cpu

"Real CPU Usage" shows real maximum, so you can use it for autoscaling real-cpu

About

Send memory and cpu usage metrics to Amazon CloudWatch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%