AWS Classroom Series – 16/Dec/2021

Navigating CloudWatch

  • Services => CloudWatch

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
    • 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
    • Now view the alarm
    • 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
    • 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:
    • As per our organizational defintions under-used is any ec2 instance whose cpu-utilization for the last 10 minutes is less than 10%
    • To be continued

Leave a ReplyCancel reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

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

Continue reading

Exit mobile version
%%footer%%