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!It couldn't be easier!
- Add marbot to Slack or Microsoft Teams.
- Invite marbot to a channel.
- Follow the setup wizard.
Take your AWS monitoring to a new level! Chatbot for AWS Monitoring: Configure monitoring, escalate alerts, solve incidents.