CloudWatch

Definition

AWS monitoring service that collects and tracks metrics, logs, and events from your applications and infrastructure for performance optimization.

Use Cases

Provider Equivalents

Frequently Asked Questions

What's the difference between CloudWatch and AWS CloudTrail?
CloudWatch focuses on observability: metrics (like CPU), logs (application/system logs), dashboards, and alarms. CloudTrail focuses on auditing: it records API calls and account activity (who did what, when, and from where). Use CloudWatch to detect performance/availability issues; use CloudTrail to investigate changes and security-related activity.
When should I use CloudWatch?
Use CloudWatch when you need to monitor AWS resources or applications, troubleshoot issues, or set alerts. Common scenarios include: alerting on EC2 CPU/memory (via agent) or disk usage, monitoring ALB request latency and 5xx errors, tracking Lambda errors/throttles, centralizing application logs, and creating dashboards for operational visibility.
How much does CloudWatch cost?
CloudWatch pricing is usage-based. Costs commonly come from: custom metrics (beyond many AWS-provided metrics), alarms, log ingestion and storage (CloudWatch Logs), log queries/analytics (for example, Logs Insights), dashboards, and optional features like detailed monitoring for some services. Your bill depends on how many metrics you publish, how much log data you ingest/store, how many alarms you run, and how often you query logs.

Category: monitoring

Difficulty: intermediate

See Also