---
title: "AWS Lambda Functions in Nodinite: Monitor Errors and Trigger Functions"
description: "Monitor AWS Lambda functions with Nodinite: errors, throttles, dead-letter errors, and runs close to the timeout, with Remote Actions to see a function's history and trigger it with an event of your choice."
---

# <i class="fal fa-code" aria-hidden="true"></i> AWS Lambda Functions

A function that fails or times out stops the integration behind it, often without anyone noticing until a customer calls. The <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [AWS Monitoring Agent][AWS Agent] counts the errors and throttles of every function, warns when a run comes close to its timeout, and lets your support team look at the function's recent activity or run it again, from a [Monitor View][Monitor Views].

* ✅ Warning and Error on errors, plus Warning on throttles, dead-letter errors, and slow runs  
* ✅ Error for a function in the Failed or Inactive state, or whose last update failed  
* ✅ See the history and trigger the function with [Remote Actions][], confirmed first  

![Details of the Lambda function my-nodinite-test-web-app-func: account, region, ARN, state Active, last update Successful, runtime, handler, memory, timeout, and its evaluation thresholds with their source (1.0)][1]  
*The **Details** view of a function: its attributes, and the **Evaluation thresholds** with where each value comes from.*  

<h2 id="understanding"><i class="fal fa-network-wired" aria-hidden="true"></i> Understanding Function Monitoring</h2>

<div class="mermaid">
graph LR
    Caller["fa:fa-paper-plane Caller or event source"] --> Function["fa:fa-code Lambda Function"]
    Function -->|"runs fine"| Ok["fa:fa-circle-check OK"]
    Function -->|"throttles, slow runs,<br/>dead-letter errors"| Warn["fa:fa-triangle-exclamation Warning"]
    Function -->|"errors, Failed state"| Err["fa:fa-circle-xmark Error"]
    style Caller fill:#2678BD
    style Function fill:#2678BD
    style Ok fill:#93d16d
    style Warn fill:#FFD525
    style Err fill:#c33d34
</div>

*A function (blue) is OK (green) while it runs fine. Throttles, dead-letter errors, and runs close to the timeout raise Warning (yellow); errors over the Error threshold, or a function in the Failed or Inactive state, raise Error (red).*

The counts are totals over the **Evaluation period (minutes)** of the **Lambda** tab in the [Configuration][], 15 minutes by default. You set the account defaults on its **Thresholds** part:

![The Lambda tab of the account configuration, Thresholds part: Errors Warning, Errors Error, Throttles Warning, Dead-letter errors Warning, and Duration Warning as a percentage of the timeout (1.0)][2]  
*The **Thresholds** part of the **Lambda** tab. **Duration Warning (% of timeout)** compares the longest run in the evaluation period with the function's timeout.*  

The default values and the rules that apply to every category are on [Monitoring AWS][].

<h2 id="actions"><i class="fal fa-bolt" aria-hidden="true"></i> Remote Actions on a Function</h2>

Open the **Action** menu of the function in a Monitor View. Under **Control Center** it offers **Details**, **Edit**, **History**, and **Trigger**.

![The Action menu of a Lambda function in a Monitor View, with Details, Edit, History, and Trigger under Control Center (1.0)][3]  
*The **Action** menu of a Lambda function.*  

| Action | What it does | Needs |
| --- | --- | --- |
| **Details** | The function's attributes, such as **State**, **Last update**, **Runtime**, **Timeout (seconds)**, and **Dead-letter target**, and its thresholds | Read-only policy |
| **Edit** | The thresholds of this function | Read-only policy |
| **History** | Invocations, errors, and throttles as datapoints, and the invocations triggered from <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> | Read-only policy |
| **Trigger** | Runs the function with an event you enter | `lambda:InvokeFunction` |

Every view has a **Refresh** button, and the function's name links to it in the AWS console.

<h3 id="edit">Edit</h3>

Each threshold shows its **Account default**. Enter whole numbers: `0` switches a check off, and an empty field uses the account default. Add a **Description** if you like, and click **Save**. The thresholds apply to this function only: they are stored in the **Specific** list of the account [Configuration][] and take effect on the next monitoring cycle.

![The Edit view of a Lambda function: the thresholds with their account defaults, a Description, and Save (1.0)][4]  
*Thresholds for one function, each with its account default below the field.*  

<h3 id="history">History</h3>

**History** shows the function's invocations, errors, and throttles as datapoints, for the last 3 hours by default; the buttons **1 hour** to **72 hours** pick another period. Below them, **Triggered from Nodinite** lists the invocations run from the **Trigger** view.

![The History view of a Lambda function: the last 3 hours with no invocations, the period buttons, and the empty Triggered from Nodinite list (1.0)][5]  
*A quiet function: no invocations in the last 3 hours, and none triggered from <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> since the agent started.*  

<h3 id="trigger">Trigger</h3>

**Trigger** invokes the function with the **Event (JSON)** you enter, at most 6 MB (an empty event is sent as `{}`), and waits for its response. Click **Trigger function** and confirm: *Are you sure you want to trigger this function? It runs now, with the event you entered.* The function really runs, so whatever it does with the event, it does now.

![The Trigger view of a Lambda function: the Event JSON field, Refresh invocations, Trigger function, and the Triggered from Nodinite list (1.0)][6]  
*The **Trigger** view. The function runs only after **Trigger function** and its confirmation.*  

The **Triggered from Nodinite** list shows each invocation with **Triggered (UTC)**, **Status**, **Duration (ms)**, and **Request id**, and the eye button shows its **Event**, **Response**, and **Log (last lines)**. AWS keeps neither the event nor the response, so the agent keeps the last 25 invocations per function in its memory, and the list is emptied when the agent restarts. **Refresh invocations** updates it. Every action is recorded in [Log Audits][]; the ready-made IAM policies are on [Prerequisites][].

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-calendar-days" aria-hidden="true"></i> [Amazon EventBridge Rules][]  
* <i class="fal fa-wrench" aria-hidden="true"></i> [Managing AWS][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fab fa-aws" aria-hidden="true"></i> [AWS Monitoring Agent][AWS Agent]  
* <i class="fal fa-traffic-light-go" aria-hidden="true"></i> [Monitoring AWS][]  
* <i class="fal fa-bell" aria-hidden="true"></i> [Amazon CloudWatch Alarms][]  
* <i class="fal fa-bolt" aria-hidden="true"></i> [Let Teams Fix It Themselves][Delegate Remote Actions]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/AWS/LambdaFunction_Details.png
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/AWS/Configuration_Lambda_Thresholds.png
[3]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/AWS/LambdaFunction_ActionMenu.png
[4]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/AWS/LambdaFunction_Edit_Top.png
[5]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/AWS/LambdaFunction_History.png
[6]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/AWS/LambdaFunction_Trigger_Top.png

[Amazon CloudWatch Alarms]:https://docs.nodinite.com/logging-and-monitoring/aws/features/amazon-cloudwatch-alarms/
[Amazon EventBridge Rules]:https://docs.nodinite.com/logging-and-monitoring/aws/features/amazon-eventbridge-rules/
[AWS Agent]:https://docs.nodinite.com/logging-and-monitoring/aws/overview/
[Configuration]:https://docs.nodinite.com/logging-and-monitoring/aws/getting-started/configuration/
[Delegate Remote Actions]:https://docs.nodinite.com/getting-started/monitor/monitoring-strategy/let-teams-fix-it-themselves/
[Log Audits]:https://docs.nodinite.com/administration/tools/log-audit-search/
[Managing AWS]:https://docs.nodinite.com/logging-and-monitoring/aws/features/managing-aws/
[Monitor Views]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/what-is-a-monitor-view/
[Monitoring AWS]:https://docs.nodinite.com/logging-and-monitoring/aws/features/monitoring-aws/
[Prerequisites]:https://docs.nodinite.com/logging-and-monitoring/aws/getting-started/prerequisites/
[Remote Actions]:https://docs.nodinite.com/getting-started/monitor/remote-actions/