AWS Classroom Series – 16/Dec/2021

Navigating CloudWatch

  • Services => CloudWatch Preview Preview

CloudWatch Alarms

  • These are managed alert and notification service used to send notifications when anamoly is detected.
  • Activity-1: Create an alarm when your ec2-instance (virtual machine on AWS) is under used
    • Create any linux based ec2 instance Refer Here Preview Preview
    • When creating metrics you need to define the condition when alarm has to be raised, which in this case is under-used
    • As per our organizational defintions under-used is any ec2 instance whose cpu-utilization for the last 10 minutes is less than 10%
    • So lets create an alarm Preview Preview Preview
    • Now view the alarm Preview
    • Alarm Status can be
      • insufficient => Not enough data to find if the condition is met or not
      • OK => Condition mentioned in the alarm is not met
      • Alarm => Condition mentioned in the alarm is met
    • When Alarm is raised,
      • We can manually fix the issue
      • We can send notifications
      • For some services, there can be predefined actions.
    • So now lets see actions w.r.t ec2 Preview Preview Preview
    • If you want to perform custom action which is not defined in AWS Predefined actions, then Try to create AWS Lambda function and call this from notifications
      • Since Actions are limited we can use Notifications
  • Activity 2: Create an alarm which sends email when ec2 instance is underused
    • Notifications and actions: Preview
    • As per our organizational defintions under-used is any ec2 instance whose cpu-utilization for the last 10 minutes is less than 10% Preview
    • To be continued

Leave a Reply

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

Please turn AdBlock off
Social Network Widget by Acurax Small Business Website Designers

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube