Monitor AWS Lambda functions with CloudWatch metrics and alarms

Michael Wittig – 23 Jan 2019 (updated 17 Aug 2021)

AWS Lambda functions execute your code. Many things can go wrong when executing your code. You can run in a timeout, out of memory, or your code can throw exceptions. That’s why you need to add monitoring to be alerted when the Lambda function is not working as expected.

CloudWatch metrics

Each Lambda function sends metrics to CloudWatch that we can monitor with CloudWatch alarms. We recommend creating alarms for the following metrics:

  • Errors: The number of invocations that result in a function error.
  • Throttles: The number of invocation requests that are throttled.

Set up instructions

Monitoring Assistant
Monitor Lambda and receive alerts in Slack or Microsoft Teams!

  1. Add marbot to Slack or Microsoft Teams.
  2. Invite marbot to a channel.
  3. Follow the setup wizard.
It couldn't be easier!
Michael Wittig

Michael Wittig

Consultant focusing on Amazon Web Services (AWS). Entrepreneur building marbot.io. Author of Amazon Web Services in Action, Rapid Docker on AWS, and cloudonaut.io.

You can contact me via Email, Twitter, and LinkedIn.

Published on and updated on

marbot teaser

Chatbot for AWS Monitoring

Configure monitoring for Amazon Web Services: CloudWatch, EC2, RDS, EB, Lambda, and more. Receive and manage alerts via Slack. Solve incidents as a team.

Slack
Add to Slack
Microsoft Teams
Add to Teams