🔷

CloudWatch Lambda Insights

  • Provides monitoring and troubleshooting for AWS Lambda functions.
  • Helps identify performance bottlenecks and resource constraints in serverless applications.

Metrics Collected

  • System-level metrics:
    • CPU time
    • Memory usage
    • Disk I/O
    • Network usage
  • Diagnostic metrics:
    • Cold start occurrences
    • Lambda worker shutdowns

How It Works

  • Delivered as a Lambda Layer that you attach to your functions.
  • Once enabled, it automatically collects and sends telemetry to CloudWatch.

Use Cases

  • Monitor memory allocation to avoid out-of-memory errors.
  • Detect and analyze cold start latency.
  • Troubleshoot performance drops and execution delays.