-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add guide > Monitoring Lambda Invocation. Closes #301
- Loading branch information
1 parent
4e88332
commit 3048af5
Showing
9 changed files
with
69 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+147 KB
...osting-guardrails/monitoring/investigate-lambda-invocation/aws-console-home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+159 KB
...drails/monitoring/investigate-lambda-invocation/aws-lambda-dashboard-select.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+170 KB
...ls/monitoring/investigate-lambda-invocation/aws-lambda-invocations-resolved.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+99.7 KB
...rails/monitoring/investigate-lambda-invocation/aws-lambda-invocations-spike.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 64 additions & 0 deletions
64
docs/guides/hosting-guardrails/monitoring/investigate-lambda-invocation/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- | ||
title: Monitoring Lambda Invocation | ||
sidebar_label: Monitoring Lambda Invocation | ||
--- | ||
|
||
# Monitoring Lambda Invocation | ||
|
||
In this guide, you will: | ||
- Use the AWS console to monitor the lambda invocations. | ||
|
||
Monitoring Lambda invocations is crucial for identifying performance bottlenecks, optimizing execution, and managing AWS costs. Worker Lambda functions process [events](/guardrails/docs/guides/azure/real-time-events#configuring-real-time-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 indicate inefficiencies. Proactive monitoring helps ensure smooth execution, efficient resource utilization, and minimized costs. | ||
|
||
## Prerequisites | ||
|
||
- Access to the Guardrails AWS account with **ReadOnly** privileges. | ||
|
||
## Step 1: Login to Guardrails Console | ||
|
||
Open the AWS Console and navigate to the **Lambda** service in the region where Guardrails is deployed. | ||
|
||
 | ||
|
||
## Step 2: Navigate to Dashboards | ||
|
||
Choose **Dashboards** from the left navigation menu. | ||
|
||
 | ||
|
||
## Step 3: View Invocations | ||
|
||
From `Account-level metrics`, choose **Invocations** and and set the desired date range. | ||
|
||
 | ||
|
||
## Step 4: Identify Invocation Spikes | ||
|
||
Identify spikes in the graph for the selected time range. In this example, a spike in invocations is observed starting from `01/29/2025`. | ||
|
||
 | ||
|
||
## Step 5: Investigate and Resolve Spike | ||
|
||
High Lambda invocations may result from `increased concurrency`, `database overload`, or `excessive SQS message` throughput, often caused by misconfigurations in the environment. One way to identify the root cause is by [analyzing event floods](/guardrails/docs/guides/hosting-guardrails/monitoring/investigate-event-flood) for spikes in specific external events, which can help pinpoint the source of increased Lambda activity. | ||
Once the root cause is determined, apply the necessary fixes. | ||
|
||
## Step 6: Review | ||
|
||
- [ ] Ensure that the Lambda invocation spike stabilizes and returns to normal levels. | ||
|
||
 | ||
|
||
## Next Steps | ||
|
||
Please see the following resources to learn more about Turbot Guardrails Enterprise: | ||
|
||
- Learn how to [Monitor Alarms](https://turbot.com/guardrails/docs/guides/hosting-guardrails/monitoring/diagnose-control-error). | ||
- Learn how to [Diagnose Control Error](/guardrails/docs/guides/hosting-guardrails/monitoring/diagnose-control-error). | ||
|
||
## Troubleshooting | ||
|
||
| Issue | Description | Guide | | ||
|----------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------| | ||
| Common errors. | Any common errors preventing controls to run. |Refer [Common Troubleshooting](/guardrails/docs/guides/troubleshooting) for more information. | ||
| Further Assistance | If you encounter further issues, please open a ticket with us and attach the relevant information to assist you more efficiently. | [Open Support Ticket](https://support.turbot.com) | |
Binary file added
BIN
+181 KB
...ardrails/monitoring/investigate-lambda-invocation/lambda-select-invocations.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters