Day-28: Amazon CloudWatch & Monitoring — Summary
- Amazon CloudWatch is AWS’s monitoring and observability service for your cloud resources and applications.
- It collects metrics, logs, and events to track performance and health.
⚙️ Key Components
- Metrics: Data points like CPUUtilization, NetworkIn, DiskReadOps.
- Alarms: Trigger notifications or actions when a metric crosses a threshold.
- Logs: Capture application or system logs from EC2, Lambda, etc.
- Dashboards: Visualize metrics and logs in real-time.
- Events: React to changes automatically using EventBridge.
🧠 Why Use CloudWatch
- Detect performance issues early.
- Automate scaling actions via alarms.
- Centralized logging for troubleshooting.
- Optimize cost and resource usage.
⚡ Example Use Case
- Create an alarm for EC2: if CPU > 80%, send an SNS alert or trigger Auto Scaling.
- View Lambda execution metrics or S3 storage usage trends in dashboards.