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:
Then we will want to select our instance and go to actions --> Monitor and Troubleshoot --> Manage detailed monitoring:
Then check enable and select confirm:
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:
Then select EC2:
Then select Per-instance metrics:
Then in the search bar enter "CPUUtilization" and you should be presented with one instance:
Then we will want to make the following changes:
Deliverable 1:
CloudWatch Graphs in EC2 Console:
The we want to return to the EC2 Console, Select the Instance, Click on the Monitoring Tab
Generating Alarms in CoudWatch:
Then we want to add the following inbound rule to our security group:
We then want to select the following in the actions menu:
Under the alarms tab, we just want to toggle off the following options:
Alarm thresholds settings should look like this:
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:
Then we can see the alarm in CloudWatch:
Turn off Detailed Monitoring
All we want to do here is uncheck "Enable" in the detailed monitoring tab: