Knowing is half the battle with most failures, and AWS Lambda is no different. The sooner you are informed of an issue with your serverless architecture, the sooner you are able to begin work on a fix.
In support of this, Lumigo gives you the capability to send alerts directly to your Slack workspace or e-mail inbox.
Configuring Alert Policies
To configure alert policies for your functions:
Adding Alerts with the Lumigo UI
- Hit the 'Add Alert' button.
- Choose the type of alert and the alert’s condition (triggering event).
- Select the functions that should send this alert.
- Click on 'Add Alert'.


Adding Alerts with AWS Tags
If you are using auto-tracing for your Lambda functions, alerts will already be added automatically.
If you're not using auto-tracing, the fastest way of adding alerts to your functions automatically is by flagging them using AWS Tags. To do so:
- Open the configuration for your AWS Tags
- Create the tag
lumigo:auto-alert
and set the value tobasic
- Apply the tag to your Lambda function
- Wait 15-20 minutes for the changes to propagate.
Lumigo will now automatically report statistics on your Lambda function!
- Using the
auto-alert
tag will override any alert configurations that were previously configured with the UI.
Note
We recommend that you limit the alert rate for policies that are based on single events in your system, such as Lambda Errors.
- One function tends to fail in batches, with large periods of inactivity between them. Throttling this function's alerts to "24 Hours" will limit notifications to once a day, preventing you from being bombarded with Slack notifications abd emails.
- For functions where all failures are critical, you can disable throttling entirely by selecting “Never” from the dropdown. With this option selected, you will receive a notification each time the function fails.
Updated 2 months ago