Monitoring AWS Lambda Invocations

Monitoring AWS Lambda Invocations

In this guide, you will:

Monitoring AWS Lambda invocations is crucial for detecting performance bottlenecks, optimizing execution efficiency, and managing AWS costs effectively. Worker Lambda functions process events, and prolonged execution times can result from high concurrency, database overload, or excessive SQS message throughput.

When durations exceed defined thresholds, they increase costs and may indicate inefficiencies. Proactive monitoring helps ensure smooth execution, efficient resource utilization, and minimized costs.

Prerequisites

Step 1: Log in to AWS Console

Open the AWS Console and navigate to the Lambda service in the region where Guardrails is deployed.

AWS Console Home

Step 2: Navigate to Dashboards

From the left navigation menu, select Dashboards.

Lambda Dashboard

Step 3: View Lambda Invocations

In Account-level metrics, select Invocations and set the desired date range.

Select Invocations

Step 4: Identify Invocation Spikes

Analyze the graph for spikes in invocation counts over the selected time range. In this example, a spike is observed starting from 01/29/2025.

Identify AWS Lambda Invocations Spike

Step 5: Investigate and Resolve Spike

A spike in Lambda invocations may be caused by increased concurrency, database overload, or excessive SQS message throughput, often due to misconfigured policies or external API events.

To identify the root cause, analyze event floods for unusual spikes in external events.

Common causes include:

Once identified, apply necessary fixes as recommended by Turbot support.

Step 6: Review

Lambda Invocation Resolved

Next Steps

Explore additional monitoring guides for Guardrails Enterprise:

Troubleshooting

Issue Description Guide
Common Errors Any errors preventing controls from running. Refer to Common Troubleshooting for more information.
Further Assistance and Feedback If you encounter issues or have suggestions to improve this guide, please open a support ticket with detailed logs, screenshots, and your feedback. Open Support Ticket