Monitoring EC2 Instances Using AWS CloudWatch
Monitoring EC2 Instances Using AWS CloudWatch

CLOUD LABS

Monitoring EC2 Instances Using AWS CloudWatch

In this Cloud Lab, you’ll learn how to create CloudWatch alarms to monitor EC2 instances. You’ll also use SNS to send email notifications when the alarm is triggered.

6 Tasks

beginner

1hr

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

An understanding of CloudWatch and its application in monitoring EC2 instances
Working knowledge of CloudWatch alarms and how to attach them to an EC2 instance
The ability to perform EC2 actions when the alarm triggers
The ability to create SNS topics and subscriptions for email notifications when the alarm triggers

Technologies
AWS logoAWS
EC2
CloudWatch
SNS
Skills Covered
Using AWS Cloud Services
Cloud Lab Overview

Amazon EC2 creates servers for web pages and apps. Amazon CloudWatch is a monitoring service that helps manage instances and prevents the overuse of resources or issues. When triggered, it monitors performance and can set alarms for metrics like CPU use or network traffic.

In this Cloud Lab, you’ll first create an EC2 instance and a CloudWatch alarm that will monitor the CPU utilization metric of that instance. You’ll also set up an SNS topic and subscribe with your email address. You’ll then stress the EC2 instance to trigger the alarm, which will perform two actions. First, it will stop the instance, and then it will signal an SNS email notification to your email address.

By the end of this Cloud Lab, you’ll be able to create several CloudWatch alarms to monitor EC2 instances and also to configure what action to perform and which subscribed user to email when an alarm is triggered. You’ll be able to improve the stability and performance of your applications by maximizing and ensuring the health of your AWS resources.

The following is the high-level architecture diagram of the infrastructure that you’ll create in this Cloud Lab:

The architecture diagram
The architecture diagram
Cloud Lab Tasks
1.Introduction
Getting Started
2.Creating Resources
Launch an EC2 Instance
Create an Alarm
3.Testing Alarm
Monitor the Instance and Trigger Alarm
4.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image