Monitoring EC2 Instances using CloudWatch

In this article, We are going to perform Monitoring EC2 Instances using CloudWatch, enabling detailed monitoring and creating cloudwatch alarms.

Monitoring EC2 Instances using CloudWatch

Step #1: Create a EC2 Instance.

create ec2 instance 1

Step #2: Allow Detailed Monitoring for the above Instance.

Note: Detailed Monitoring are chargeable  

allow detailed monitoring 2

Step #3: Give the tag

enable cloudwatch detailed monitoring 2

Step #4: Allow the Security Group

allow security groups 3

Step #5: Launch the Instance with the proper Key

Step #6: Go to the landing page of CloudWatch service

got to cloudwatch click on create dashboard 4

Step #7: Click on Create Dashboard, give the name of dashboard

enter cloudwatch dashboard name 5

Step #8: Add any Widget, how you want to see the data of your ec2, We have selected the stacked area, you can select as well.

select cloudwatch dashboard type 6

Step #9: Now select the resource which you want to monitor

select the resource which you want to monitor 7

Step #10: Select EC2 and in EC2 Section select Per-Instance metrics

10.Select EC2 and in EC2 Section select Per Instance metrics 8

Step #11: Save the Above Data using , Save Widget button

save cloudwatch dashboard 9

Step #12: Till far we have created the Dashboard now it time to create the Alarm

click on cloudwatch alarm 10

Step #13: Click on Create Alarm and then Select EC2 and in EC2 Section select Per-Instance metrics(CPU Utilization)

click on create new alarm 11
enter alarm details 12

enter alarm action details 13

Conclusion:

We have covered Monitoring EC2 Instances using CloudWatch, enabling detailed monitoring and creating cloudwatch alarms.

Related Articles:

How to Create Ubuntu Instance in AWS [7 Steps]

How to connect to AWS EC2 Instance using MobaXTerm

How to Enable Password Authentication for AWS EC2

How to Connect EC2 Instance using Putty

How to Transfer files to AWS Instance using WinSCP [2 Steps]

How to Create AWS DocumentDB and Connect [3 steps]

How to Install MySQL 5.7 on Amazon Linux 2

AWS Create Instance from snapshot

AWS Create EC2 Instance from Snapshot

How to create IAM user in AWS step by step

Reference:

AWS CloudWatch official page

About DevOps Hint

DevOps Hint Founded in 2020 Community Site where you can find about How to Guides, Articles and Troubleshooting Tips for DevOps, SRE, Sysadmins and Developers.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Share via
Copy link