EC2 Metrics and Custom Metrics

Length: 00:13:25

Lesson Summary:

The EC2 service had the most metrics of any service. There are many we can use without additional charges. There are, however, a few metrics that are not reported by default. These can be called custom metrics and involve installing an agent on the EC2 instance itself. This lesson discusses basic EC2 metrics for CloudWatch and how we can get custom, OS-level metrics sent to CloudWatch as well.


Here are the commands used in this video:


######## Install CloudWatch Agent ############
wget https://s3.amazonaws.com/amazoncloudwatch-agent/linux/amd64/latest/AmazonCloudWatchAgent.zip
unzip AmazonCloudWatchAgent.zip
sudo ./install.sh

######## Configure CloudWatch Agent ############
/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-config-wizard

######## Start CloudWatch Agent ###############
sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c file:configuration-file-path -s


This lesson is only available to Linux Academy members.

Sign Up To View This Lesson
Or Log In

Looking For Team Training?

Learn More