What is CloudWatch?

CloudWatch collects your app's numbers and logs, and alerts you when something looks wrong.

1 min read

Once an app is live, you need answers fast: Is it up? Is it slow? Why did that request fail? Amazon CloudWatch is AWS's built-in monitoring service. It collects:

  • Metrics: numbers over time (CPU %, request count, error count, duration)
  • Logs: text output from your code and AWS services
  • Alarms: alerts when a metric crosses a threshold
  • Dashboards: charts of what matters, on one screen
Think of it like this

CloudWatch is your car's dashboard and its black-box recorder. The gauges (metrics) show speed and temperature, warning lights (alarms) flash when something's off, and the recorder (logs) tells you exactly what happened before a breakdown.

It's already working

Most AWS services send metrics automatically. Lambda reports invocations, errors, duration, and throttles, and all your print() output from earlier tutorials went to CloudWatch Logs.

Key takeaways

  • CloudWatch provides metrics, logs, alarms, and dashboards.
  • Most AWS services publish metrics automatically.
  • Lambda output goes to CloudWatch Logs by default.

Check your understanding

Pick an answer to see the explanation.

  1. 1. Where did your Lambda function's print() statements go?