Monitoring & Observability
Amazon CloudWatch
Metrics, logs, alarms and dashboards for AWS and your apps.
Official docsOverview
CloudWatch collects metrics from every AWS service, ingests application/agent logs, evaluates alarms and renders dashboards. Includes Synthetics canaries and RUM.
When to use it
- Operational monitoring of any AWS workload
- Alerting on SLO breaches
- Centralized application logs
Setup
- Most services emit metrics by default. Install CloudWatch Agent on EC2/on-prem for OS metrics & logs.
- Create Log Groups per app and set retention.
- Define alarms (Static or Anomaly Detection) → SNS topic for notifications.
- Build dashboards mixing metrics, logs and alarms.
How to use
Tail logs in real time
aws logs tail /aws/lambda/my-fn --followLogs Insights query
fields @timestamp, @message
| filter @message like /ERROR/
| sort @timestamp desc
| limit 50QA use cases
- Create Synthetics canaries that run Playwright-like scripts every 5 minutes against prod and alert on failure.
- Build a 'Release Health' dashboard tracking p95 latency, 5xx rate and queue depth during QA windows.
