SYS 360 Lab 9 1: Monitoring Instances with Amazon CloudWatch - JadenGil/Jaden-Tech-Journal GitHub Wiki

Enable Detailed Monitoring:

To start things off we will want to go into EC2 through the learner lab and navigate to the instances tab:

image

Then we will want to select our instance and go to actions --> Monitor and Troubleshoot --> Manage detailed monitoring:

image

Then check enable and select confirm:

image


Note from lab: Basic Monitoring (5 minute metrics) for EC2 in CLoudWatch is free. Detailed Monitoring for EC2 in CloudWatch can cost money if you have multiple instances and operations.


Use CloudWatch to determine the maximum CPU utilization of a specific EC2 instance:

Once we have done that we want to navigate to CloudWatch and then in the sidebar select Metrics then All metrics:

image

Then select EC2:

image

Then select Per-instance metrics:

image

Then in the search bar enter "CPUUtilization" and you should be presented with one instance:

image

Then we will want to make the following changes:

image

Deliverable 1:

image


CloudWatch Graphs in EC2 Console:

The we want to return to the EC2 Console, Select the Instance, Click on the Monitoring Tab

image


Generating Alarms in CoudWatch:

Then we want to add the following inbound rule to our security group:

image

We then want to select the following in the actions menu:

image

Under the alarms tab, we just want to toggle off the following options:

image

Alarm thresholds settings should look like this:

image

Then create and start a ping to the public IP of the instance with -T at the end of the command and wait for the alarm:

image

Then we can see the alarm in CloudWatch:

image


Turn off Detailed Monitoring

All we want to do here is uncheck "Enable" in the detailed monitoring tab:

image