What is a Custom metric? You can create a custom metric (script) from your EC2 instance and monitor that metric by pushing it to CloudWatch. How to push your metric to CloudWatch? $ crontab -e $ crontab -e Add the following line to execute your script every minute: */1 * * * * /home/ec2-user/mem.sh Save and exit.