---
title: Configure Logic Apps Workflow Monitoring Thresholds in Nodinite
description: "Configure the Workflows tab in the Nodinite Logic Apps agent: enable workflow and trigger monitoring, exclude workflows by name, and set global or per-workflow thresholds for execution counts, Action invocations, duration, and run history retention."
---

:ReleaseNotes(https://portal.nodinite.com/marketplace/16):

# :fa-sitemap: Configure Workflow Monitoring for Azure Logic Apps

This page covers the **Workflows** tab of a Subscription configuration in the :Nodinite: [Azure Logic Apps Logging and Monitoring Agent][LogicAppsAgent]. It decides which workflows the agent monitors and which thresholds raise a **Warning** or **Error** on their [Resources][] in your [Monitor Views][]. Evaluating failed runs also requires the diagnostics Event Hub; see [Configure Event Hubs][Configuration - Event Hubs]. The other tabs are on the [Subscription configuration][Configuration - Subscription] page.

## :fa-sliders-v: Understanding workflow thresholds

Besides failed runs, the agent can detect problems that don't fail: a workflow that stops running, runs far more often than expected, loops too many times, or runs too long. These are **Non-Events** checks, the same idea as [Non-Events Monitoring][], evaluated over a lookback period:

|Check|Detects|Example|
|---|---|---|
|:fa-arrow-down-wide-short: **Min execution count**|Too few runs|A nightly import that didn't start|
|:fa-arrow-up-wide-short: **Max execution count**|Too many runs|A trigger stuck in a retry storm|
|:fa-exchange-alt: **Max Action invocation count**|Too many Actions in a single run|A loop processing far more items than normal|
|:fa-stopwatch: **Duration**|Runs that take too long|A slow backend holding up a workflow|
|:fa-clock-rotate-left: **Min / Max run history retention**|Azure keeps the run history too briefly, or too long|A workflow on the Azure default of 90 days when you want at most 30; see [Run history retention](#run-history-retention)|

The agent evaluates every workflow that the exclusion filter doesn't remove, against its specific thresholds when it has them and the global thresholds otherwise. The [Monitoring Service][] picks up the resulting state, so [Alarm Plugins][] can notify the right people:

<div class="mermaid">
graph LR
    WF["fa:fa-sitemap Workflows<br/>in enabled Resource Groups"] --> EX["fa:fa-filter Workflow exclusion filter"]
    EX -.->|"Name matches"| SKIP["fa:fa-ban Not monitored"]
    EX -->|"Included"| TH["fa:fa-sliders Specific thresholds<br/>or Global thresholds"]
    TH --> ST["fa:fa-heart-pulse Resource state<br/>OK, Warning, or Error"]
    ST --> MV["fa:fa-display Monitor Views<br/>and Alarm Plugins"]
    style WF fill:#2678BD
    style EX fill:#E47528
    style TH fill:#3F827B
    style MV fill:#9E59BB
</div>

*Diagram: Workflows (blue) pass the exclusion filter (orange), the agent compares them with the thresholds (teal), and the resulting state reaches Monitor Views and Alarm Plugins (purple).*

### :fa-code-compare: Global thresholds vs Specific thresholds

|Level|Where you set it|Applies to|When to use it|
|---|---|---|---|
|:fa-globe: **Global thresholds**|[Global thresholds](#fa-globe-global-thresholds-workflows) tab|Every monitored workflow without its own entry|✅ Recommended starting point|
|:fa-sliders-v: **Specific thresholds**|[Specific thresholds](#fa-sliders-v-specific-thresholds-tab-workflows) tab, one entry per workflow|Only the named workflow|Workflows with a different schedule or volume|

You can also edit the thresholds of a single Logic App directly from its Resource; see [Edit thresholds][Managing Logic Apps - Edit].

## :fa-sitemap: Workflows tab

The **Workflows** tab has three tabs:

* :fa-gear: [General](#fa-gear-general-tab-workflows)
* :fa-globe: [Global thresholds](#fa-globe-global-thresholds-workflows)
* :fa-sliders-v: [Specific thresholds](#fa-sliders-v-specific-thresholds-tab-workflows)

![Workflows tab of a Subscription configuration][14]  
*The Workflows tab with its General, Global thresholds, and Specific thresholds tabs.*  

### :fa-gear: General Tab (Workflows)

* :fa-toggle-on: **Enable monitoring of Workflows** - When checked, the agent monitors the Workflows in the enabled [Resource Groups][Configuration - Subscription - Resource groups]
* :fa-toggle-on: **Enable trigger evaluation of Workflows** - When checked, the agent monitors the triggers of the enabled workflows
* [Workflow exclusion filter](#fa-filter-workflow-exclusion-filter) - The list of [RegEx][] expressions in use to exclude Azure Workflows from **Monitoring**

#### :fa-filter: Workflow exclusion filter

You can exclude Workflows based on the name using a regular expression. Click the :fa-square-plus: **Add** button to add a new entry.
![Workflow exclusion filter entry][29]  
*Example of a RegEx entry that excludes Workflows by name.*  

The expression is matched against the bare workflow name only. The list always holds `^Artifacts$`, `^workflow-designtime$`, and `^lib$`; the agent adds them back if you remove them.

>[!IMPORTANT]
>This filter removes workflows from **Monitoring** only: their runs are still logged. To stop **logging** a workflow while you keep monitoring it, use the [Workflow logging exclusion filter][Configuration - Logging - Exclusion] on the Logging tab instead.

### :fa-globe: Global Thresholds (Workflows)

You can configure **Non-Events** type Monitoring. This option is easier to use on the **Logic App** [Resource][Resources]; see [Monitoring Logic Apps][].
![Global Thresholds tab (6.1.0.11)][30]  
*The Global thresholds tab sets the Warning and Error limits for every monitored workflow.*  

* :fa-clock-rotate-left: **Lookback time period** - The time period to look back for Azure Workflow execution KPIs
* ⚠️ **Min execution count - Warning** - Warning threshold for the minimum number of executions in period (set value -1 to disable this check)
* ❌ **Min execution count - Error** - Error threshold for the minimum number of executions in period (set value -1 to disable this check)
* ⚠️ **Max execution count - Warning** - Warning threshold for the maximum number of executions in period (set value -1 to disable this check)
* ❌ **Max execution count - Error** - Error threshold for the maximum number of executions in period (set value -1 to disable this check)
* ⚠️ **Max Action invocation count - Warning** - Max number of allowed Action invocations for a single run (set value -1 to disable this check)
* ❌ **Max Action invocation count - Error** - Max number of allowed Action invocations for a single run (set value -1 to disable this check)
* ⚠️ **Duration - Warning** - The longest allowed run duration for the Workflow in milliseconds (set value -1 to disable this check)
* ❌ **Duration - Error** - The longest allowed run duration for the Workflow in milliseconds (set value -1 to disable this check)
* ⚠️ **Min run history retention (days) - Warning** - Warning when the [run history retention](#run-history-retention) is below this many days
* ❌ **Min run history retention (days) - Error** - Error when the run history retention is below this many days
* ⚠️ **Max run history retention (days) - Warning** - Warning when the run history retention is above this many days
* ❌ **Max run history retention (days) - Error** - Error when the run history retention is above this many days

![The four run history retention fields on the Global thresholds tab: Min Warning and Min Error at -1, Max Warning 16, Max Error 91][33]  
*With Max Warning 16 and Max Error 91, a workflow on the Azure default of 90 days gets a Warning, not an Error.*  

#### :fa-clock-rotate-left: Run history retention {#run-history-retention}

Azure keeps the run history of every stateful workflow, with inputs and outputs, for its retention period: 90 days unless you change it. A long retention costs storage, and can keep personal data longer than your policy allows; a short one can leave too little history for support. See [Reduce Azure Logic Apps Run History Retention to Lower TCO][] for why the retention matters and how to change it in Azure. The four retention thresholds tell you when a workflow's retention is outside the range you want.

* **Range** -1 to 365 days; **-1 disables** that check. All four default to -1, so nothing changes until you set a value.
* **Where the agent reads the retention:**

  |Logic App type|Read from|When not set|
  |---|---|---|
  |Consumption|The workflow's runtime option `properties.runtimeConfiguration.lifetime`|Azure default, **90** days|
  |Standard|The app setting `Workflows.{workflow}.RuntimeConfiguration.RetentionInDays`, else `Workflows.RuntimeConfiguration.RetentionInDays`|Azure default, **90** days|

  The agent reads a Standard Logic App's app settings only while at least one retention threshold is set in the subscription, and it needs the `Microsoft.Web/sites/config/list/action` permission for it; see [Prerequisites - Azure access][]. It keeps only the retention settings from that read: no other app setting, secrets included, is stored.
* **Stateless workflows aren't checked.** They keep no run history, so they never get a retention Warning or Error. The agent doesn't read the app settings of a Standard Logic App that has only stateless workflows.
* **The first match wins.** With at least one retention threshold set, the agent checks in this order:

  |#|Condition|State|Log text|
  |---|---|---|---|
  |1|The retention can't be read|⚠️ Warning|Run history retention could not be read|
  |2|Above **Max - Error**|❌ Error|Run history retention is longer than the configured maximum|
  |3|Below **Min - Error**|❌ Error|Run history retention is shorter than the configured minimum|
  |4|Above **Max - Warning**|⚠️ Warning|Run history retention is longer than the configured maximum|
  |5|Below **Min - Warning**|⚠️ Warning|Run history retention is shorter than the configured minimum|

  An unreadable retention is a Warning on purpose, so a lost permission never looks compliant; see [Troubleshooting][Troubleshooting - Retention]. The log texts hold no numbers, so a changed value doesn't create a new entry in the Resource history.
* **Combined with the other checks.** The worse state of the retention check and the execution count, Action invocation, and duration checks wins; when both are at the same Warning or Error level, the Log text shows both texts, separated by a semicolon. See [Monitoring Logic Apps][Monitoring Logic Apps - Retention].
* **Agent database.** Retention monitoring needs the agent database at version 6.0.0.66 or later; [update the agent][Updating] if needed. The agent checks again every 10 minutes, so it picks up an updated database without a restart.

To clear a retention Warning, raise the maximum, set it to -1, or lower the workflow's retention in Azure.

### :fa-sliders-v: Specific thresholds tab (Workflows)

For a specific Workflow, you can override the [global settings](#fa-globe-global-thresholds-workflows).
![Specific thresholds tab - Workflows (6.1.0.11)][31]  
*The Specific thresholds tab lists the workflows that have their own thresholds.*  

* :fa-sitemap: **Name** - The name of the Azure Workflow (note: case sensitive)
* :fa-globe: **Web Site Name** - Conditional: The name of the Web Site with the specified Workflow (Applies only to the Standard App Service Plan)
* :fa-object-group: **Resource Group Name** - The name of the Resource Group with the Workflow
* :fa-align-left: **Description** - User friendly description for this configuration
* :fa-calendar-day: **Clear DateTime (UTC)** - The date time in UTC format to ignore Workflows that have previously failed (the lookback time span supersedes this value if too much time has passed); see also [Clear][Managing Logic Apps - Clear]
* :fa-globe: **Use global thresholds** - When checked, the Monitoring thresholds use the global settings
  >[!NOTE]
  >These are essentially the same as in the [global settings](#fa-globe-global-thresholds-workflows) and as such are not repeated in this documentation.

![Specific thresholds entry - Workflows (6.1.0.11)][32]  
*Example of a specific thresholds entry for one workflow.*  

The entry has the same four [run history retention](#run-history-retention) fields. When **Use global thresholds** is unchecked, only the workflow's own four retention values apply to it; the global retention thresholds are ignored for that workflow.

![Specific Workflow entry for StatefulFailing with Use global thresholds unchecked][34]  
*Uncheck **Use global thresholds** to give one workflow its own retention range.*  

![Min run history retention Warning 30 and Error 7 on a Specific Workflow entry][35]  
*This workflow must keep at least 30 days of run history (Warning) and never less than 7 (Error).*  

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

* :fa-monitor-waveform: [Add or manage a Monitoring Agent Configuration][]  
* :fa-display: [Add or manage Monitor View][]  
* :fa-user: [User access to Logic Apps Monitoring][]  
* :fa-search: [Back to Logging][Configuration - Logging]  
* :fa-credit-card: [Back to Subscription configuration][Configuration - Subscription]  

## :fa-link-horizontal: Related Topics

* :fa-hard-drive: [Logic Apps Log Agent][LogicAppsAgent]  
* :fa-desktop: [Monitoring Logic Apps][]  
* :fa-cloud-sun: [Managing Logic Apps][]  
* :fa-code-branch: [Configure Event Hubs][Configuration - Event Hubs]  
* :fa-search: [Configure Logging][Configuration - Logging]  
* :fa-wrench: [Configuration][Configure]  
* :fa-square-plus: [Prerequisites][]  
* :fa-bell: [Alarm Plugins][]  
* :fa-tags: [Categories][]  
* :fa-life-ring: [Troubleshooting][]  

[14]:{ndm}/Documentation%20Pictures/MonitorAgent/LogicApps/Configuration/WorkflowsTab.png
[29]:{ndm}/Documentation%20Pictures/MonitorAgent/LogicApps/Configuration/WorkflowExclusionFilterEntry.png
[30]:{ndm}/Documentation%20Pictures/MonitorAgent/LogicApps/Configuration/WorkflowsGlobalTresholdsTab.png
[31]:{ndm}/Documentation%20Pictures/MonitorAgent/LogicApps/Configuration/WorkflowsSpecificThresholdsTab.png
[32]:{ndm}/Documentation%20Pictures/MonitorAgent/LogicApps/Configuration/WorkflowsSpecificTresholdsEntry.png
[33]:{ndm}/Documentation%20Pictures/MonitorAgent/LogicApps/Configuration/WorkflowsGlobalRetentionThresholds.png
[34]:{ndm}/Documentation%20Pictures/MonitorAgent/LogicApps/Configuration/WorkflowsSpecificUseGlobalThresholdsOff.png
[35]:{ndm}/Documentation%20Pictures/MonitorAgent/LogicApps/Configuration/WorkflowsSpecificRetentionThresholds.png

[Add or manage a Monitoring Agent Configuration]:{ndr}/Administration/2.%20Monitor%20Management/2.%20Monitor%20Agents/Features/Add%20or%20manage%20Monitor%20Agent.md
[Add or manage Monitor View]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/Add%20or%20manage%20Monitor%20View.md
[Alarm Plugins]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/What%20is%20an%20Alarm%20Plugin.md
[Categories]:{ndr}/Administration/2.%20Monitor%20Management/4.%20Categories/Features/What%20is%20a%20Category.md
[Configuration - Event Hubs]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Getting%20started/3B.%20Configuration%20-%20Event%20Hubs.md
[Configuration - Logging]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Getting%20started/3C.%20Configuration%20-%20Logging.md
[Configuration - Logging - Exclusion]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Getting%20started/3C.%20Configuration%20-%20Logging.md#workflow-logging-exclusion-filter
[Configuration - Subscription]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Getting%20started/3A.%20Configuration%20-%20Subscription.md
[Configuration - Subscription - Resource groups]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Getting%20started/3A.%20Configuration%20-%20Subscription.md#fa-object-group-resource-groups-tab
[Configure]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Getting%20started/3.%20Configuration.md
[LogicAppsAgent]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Overview.md
[Managing Logic Apps]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Features/Managing%20Logic%20Apps.md
[Managing Logic Apps - Clear]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Features/Managing%20Failed%20Runs.md#fa-eraser-clear
[Managing Logic Apps - Edit]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Features/Managing%20Logic%20Apps.md#fa-edit-edit-thresholds-logic-app
[Monitor Views]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/What%20is%20a%20Monitor%20View.md
[Monitoring Logic Apps]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Features/Monitoring%20Logic%20Apps.md
[Monitoring Logic Apps - Retention]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Features/Monitoring%20Logic%20Apps.md#run-history-retention
[Monitoring Service]:{ndr}/Core%20Services/Monitoring%20Service/Overview.md
[Non-Events Monitoring]:{ndr}/Logging%20and%20Monitoring/Non-Events/Overview.md
[Prerequisites]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Getting%20started/1.%20Prerequisites.md
[Prerequisites - Azure access]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Getting%20started/Prerequisites/Azure%20Access%20and%20Roles.md
[Reduce Azure Logic Apps Run History Retention to Lower TCO]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Troubleshooting/Reduce%20Azure%20Logic%20Apps%20Run%20History%20Retention%20to%20Lower%20TCO.md
[RegEx]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/RegEx.md
[Resources]:{ndr}/Administration/2.%20Monitor%20Management/3.%20Resources/Features/What%20is%20a%20Resource.md
[Troubleshooting]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Troubleshooting/Overview.md
[Troubleshooting - Retention]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Troubleshooting/Overview.md#run-history-retention-could-not-be-read
[Updating]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Updating.md
[User access to logic apps monitoring]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Features/User%20access%20to%20logic%20apps%20monitoring.md