Sending Alerts
Usecase-1: AWS
- Send alerts via email when average CPU utilization for last 5 minutes
- is greater than 80 %
- is less than 40%
- CloudWatch is a monitoring service in AWS
- For screenshots or guided creation watch classroom recording
- Monitoring for ec2


- AWS CloudWatch by default starts collecting some metrics such as
- CPU Utilization
- AWS Cloudwatch can create Alarms which will have 3 states
- insufficient data
- alarm (condition is met)
- ok (condition is not met)
- AWS Cloudwatch Alarm can be linked with actions. Generally for ec2 instances we have some of the predefined actions such as start, stop, restart instance but in any alarm we can hook it to do custom actions
- Define custom action as lambda function and call it (we will be learning lambda as part of our python content)
Usecase-2 Azure
- Send alerts via email when average CPU utilization for last 5 minutes
- is greater than 80 %
- is less than 40%
- Azure Monitor is a service for monitoring in Azure

- In Azure we can setup alerts

