Python – Programmatically Check AWS EC2 CPU and Memory usage

amazon ec2botopython

Does boto3 make it possible to access EC2 CPU and Memory usage? I looked here, but couldn't find anything in the docs.

How do I programmatically check memory and CPU usage on an EC2 server running Windows 2012? (preferably with python)

Best Answer

You can use CloudWatch to monitor CPU usage, the Boto2 CloudWatch Description shows how to access the metrics.

For memory usage you need some kind of check or agent running inside the VM.

Related Topic