Skip to content
RankCore.AI
← All posts

AWS Lambda Monitoring Cheatsheet: The Metrics That Matter

· AWS, Lambda, Serverless, Monitoring, CloudWatch

Lambda sends metrics to CloudWatch for every function you run. You don't set anything up and you don't pay extra for them. The hard part is knowing which ones to watch, which statistic to graph, and what to do when a line moves. This cheatsheet answers those three questions in 13 slides. You can save it, share it with your team, or download the PDF at the end of the post.

⬇ Download the cheatsheet (PDF, 13 slides)

AWS Lambda Monitoring Cheatsheet cover

1. The metrics that matter. This is a field guide, not a full reference. It covers what Lambda reports by default, what the REPORT log line adds, when Lambda Insights is worth turning on, the alarms to create, and how all of it connects to your bill.

Pick the right statistic

2. Choose the statistic before you read the graph. Count metrics such as Invocations, Errors and Throttles report 0 or 1 per invocation, so you graph them with Sum. Time metrics such as Duration and IteratorAge need percentiles (p90 or p99) together with Max, because one slow run can pull an Average up or down. Capacity metrics such as ConcurrentExecutions need Maximum: throttling happens at the peak, so an average tells you nothing about it. Most "my dashboard looks fine" incidents come down to the wrong statistic.

Invocation metrics

3. Invocation metrics: is it running, and is it working? Invocations counts every run, successful or not, and it is the same number as your billed requests. Divide Errors by Invocations to get an error rate. DeadLetterErrors and DestinationDeliveryFailures should always be zero. If either one is above zero, failed events aren't reaching the place you set up to catch them. The most important line is at the bottom of the slide: throttled requests count as neither Invocations nor Errors. A function that is being throttled hard can still show a clean error graph.

Async and event source metrics

4. Async and event source metrics: where events wait. Async invocations from services like S3, SNS and EventBridge go into a queue inside Lambda first. AsyncEventAge rises when events are being retried or throttled, and AsyncEventsDropped means events were thrown away without a successful run. For SQS, Kinesis, DynamoDB streams and Kafka, you can turn on event source mapping metrics (the EventCount group). They show what was polled, what failed and what was dropped. RecursiveInvocationsDropped means Lambda broke an infinite loop for you. Treat it as a bug in your design, not as noise.

Performance metrics

5. Performance: how fast work moves. Duration is the time your handler spends on one event. It doesn't include cold-start initialization. PostRuntimeExtensionsDuration is the time extensions keep running after your handler returns. Check it whenever you add a monitoring agent or a layer. For streams, IteratorAge (DynamoDB, Kinesis, DocumentDB) and OffsetLag (Kafka and MSK) tell you whether you are keeping up. If either one keeps rising, records are being produced faster than you process them.

Concurrency metrics

6. Concurrency: how close you are to throttling. By default, all functions in an account share 1,000 concurrent executions per Region. Look up your actual quota in Service Quotas. ConcurrentExecutions shows how many instances are busy right now. ClaimedAccountConcurrency adds the reserved and provisioned capacity you have set aside, so it shows how much room is really left for on-demand work. If you use provisioned concurrency, watch ProvisionedConcurrencyUtilization (in use ÷ configured) and ProvisionedConcurrencySpilloverInvocations. Spillover means requests went past your warm capacity and onto instances that may cold start.

Reading the REPORT line

7. The REPORT line ties it together. Every invocation ends with a REPORT line in CloudWatch Logs. Compare Max Memory Used with Memory Size to see how much memory headroom you have. Init Duration appears only on cold starts, so it measures your cold-start cost directly. Billed Duration is the number you pay for. The Logs Insights query on the slide reports peak memory and the number of cold starts per hour, which is enough to right-size most functions. (The values on the slide are an example.)

Lambda Insights

8. Lambda Insights, when you need system-level detail. Lambda Insights is an AWS extension that you add as a layer. It publishes metrics such as memory_utilization, used_memory_max, init_duration, cpu_total_time, /tmp usage and network bytes to the LambdaInsights namespace. It isn't free: it sends 8 metrics per function and about 1 KB of logs per invocation. Turn it on first for critical functions and for the ones that use a lot of memory, not for every function in the account.

Suggested CloudWatch alarms

9. Six alarms to start with. These follow AWS's recommended alarm baselines: Errors (Sum), Throttles (Sum), Duration (p90), ConcurrentExecutions and ClaimedAccountConcurrency (Max, at about 90% of your Region quota), and memory_utilization above 90% if Lambda Insights is on. Tune the thresholds to your own traffic. A threshold copied from a blog post will either page you all the time or never. If you run async or stream workloads, also add alarms on IteratorAge, AsyncEventsDropped and DeadLetterErrors.

Cost awareness

10. Your metrics are your bill. Lambda charges for requests plus compute, and compute is measured in GB-seconds: memory in GB × billed seconds × invocations. In the worked example, a 512 MB function that runs for 200 ms and is called 10 million times uses 1,000,000 GB-seconds. At the US East x86 list price, that is about $16.67 of compute plus $2.00 of requests, before the free tier. Billing is per millisecond. Initialization code and the time extensions run after your handler both count toward duration. Prices vary by Region and architecture, and Arm costs less per GB-second.

Troubleshooting matrix

11. A troubleshooting matrix for incidents. Start from the symptom you see, check the metric in the second column, confirm the likely cause, then apply the fix. Here are three common cases. If clients get 429 responses, check Throttles first. If the first requests are slow, look at Init Duration. If a stream is falling behind, look at IteratorAge and find the record that keeps failing before you add capacity.

Senior architect tips

12. Six habits from the field. Alarm on error rates, not raw counts. Set Duration alarms relative to your timeout. Right-size memory from real data. CPU scales with memory, so a bigger setting can cost less when it shortens each run. Use reserved concurrency to protect your databases. Give every async or stream function a failure destination. And remember that Throttles and dropped events never appear in the Errors metric.

More free guides at blog.rankcore.ai

13. Keep learning. Follow @rankcore.ai for more cloud cheatsheets, and browse the rest of the free guides here on blog.rankcore.ai.


Sources. All metric names, definitions and recommended statistics come from AWS's public documentation: Using CloudWatch metrics with Lambda, Types of metrics for Lambda, Lambda Insights, CloudWatch recommended alarms and AWS Lambda pricing.

⬇ Download the AWS Lambda Monitoring Cheatsheet (PDF)

⬇ Downloads

  • rankcore-aws-lambda-monitoring-cheatsheet.pdf368 KBDownload

Want to go deeper?

Our step-by-step video courses turn these ideas into results.

See courses

Comments

Sign in or create a free account to join the discussion.

No comments yet — be the first.