---
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."
---

# :fa-code: AWS Lambda Functions

A function that fails or times out stops the integration behind it, often without anyone noticing until a customer calls. The :Nodinite: [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.*  

## :fa-network-wired: Understanding Function Monitoring {#understanding}

<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][].

## :fa-bolt: Remote Actions on a Function {#actions}

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 :Nodinite: | 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.

### Edit {#edit}

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.*  

### History {#history}

**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 :Nodinite: since the agent started.*  

### Trigger {#trigger}

**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][].

## :fa-hand-point-right: Next Steps

* :fa-calendar-days: [Amazon EventBridge Rules][]  
* :fa-wrench: [Managing AWS][]  

## :fa-link-horizontal: Related Topics

* :fab fa-aws: [AWS Monitoring Agent][AWS Agent]  
* :fa-traffic-light-go: [Monitoring AWS][]  
* :fa-bell: [Amazon CloudWatch Alarms][]  
* :fa-bolt: [Let Teams Fix It Themselves][Delegate Remote Actions]  

[1]:{ndm}/Documentation%20Pictures/MonitorAgent/AWS/LambdaFunction_Details.png
[2]:{ndm}/Documentation%20Pictures/MonitorAgent/AWS/Configuration_Lambda_Thresholds.png
[3]:{ndm}/Documentation%20Pictures/MonitorAgent/AWS/LambdaFunction_ActionMenu.png
[4]:{ndm}/Documentation%20Pictures/MonitorAgent/AWS/LambdaFunction_Edit_Top.png
[5]:{ndm}/Documentation%20Pictures/MonitorAgent/AWS/LambdaFunction_History.png
[6]:{ndm}/Documentation%20Pictures/MonitorAgent/AWS/LambdaFunction_Trigger_Top.png

[Amazon CloudWatch Alarms]:{ndr}/Logging%20and%20Monitoring/AWS/Features/Amazon%20CloudWatch%20Alarms.md
[Amazon EventBridge Rules]:{ndr}/Logging%20and%20Monitoring/AWS/Features/Amazon%20EventBridge%20Rules.md
[AWS Agent]:{ndr}/Logging%20and%20Monitoring/AWS/Overview.md
[Configuration]:{ndr}/Logging%20and%20Monitoring/AWS/Getting%20started/3.%20Configuration.md
[Delegate Remote Actions]:{ndr}/Getting%20Started/3.%20Monitor/Monitoring%20Strategy/Let%20Teams%20Fix%20It%20Themselves.md
[Log Audits]:{ndr}/Administration/6.%20Tools/2.%20Log%20Audit%20Search.md
[Managing AWS]:{ndr}/Logging%20and%20Monitoring/AWS/Features/Managing%20AWS.md
[Monitor Views]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/What%20is%20a%20Monitor%20View.md
[Monitoring AWS]:{ndr}/Logging%20and%20Monitoring/AWS/Features/Monitoring%20AWS.md
[Prerequisites]:{ndr}/Logging%20and%20Monitoring/AWS/Getting%20started/1.%20Prerequisites.md
[Remote Actions]:{ndr}/Getting%20Started/3.%20Monitor/Remote%20Actions.md