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

<a class="nodinite-release-notes" href="https://portal.nodinite.com/marketplace/16" data-url="https://portal.nodinite.com/marketplace/16"><i class="fal fa-fw fa-file-alt" aria-hidden="true"></i> Release Notes</a>

# <i class="fal fa-sitemap" aria-hidden="true"></i> Configure Workflow Monitoring for Azure Logic Apps

This page covers the **Workflows** tab of a Subscription configuration in the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [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.

## <i class="fal fa-sliders-v" aria-hidden="true"></i> 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|
|---|---|---|
|<i class="fal fa-arrow-down-wide-short" aria-hidden="true"></i> **Min execution count**|Too few runs|A nightly import that didn't start|
|<i class="fal fa-arrow-up-wide-short" aria-hidden="true"></i> **Max execution count**|Too many runs|A trigger stuck in a retry storm|
|<i class="fal fa-exchange-alt" aria-hidden="true"></i> **Max Action invocation count**|Too many Actions in a single run|A loop processing far more items than normal|
|<i class="fal fa-stopwatch" aria-hidden="true"></i> **Duration**|Runs that take too long|A slow backend holding up a workflow|
|<i class="fal fa-clock-rotate-left" aria-hidden="true"></i> **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).*

### <i class="fal fa-code-compare" aria-hidden="true"></i> Global thresholds vs Specific thresholds

|Level|Where you set it|Applies to|When to use it|
|---|---|---|---|
|<i class="fal fa-globe" aria-hidden="true"></i> **Global thresholds**|[Global thresholds](#fa-globe-global-thresholds-workflows) tab|Every monitored workflow without its own entry|✅ Recommended starting point|
|<i class="fal fa-sliders-v" aria-hidden="true"></i> **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].

## <i class="fal fa-sitemap" aria-hidden="true"></i> Workflows tab

The **Workflows** tab has three tabs:

* <i class="fal fa-gear" aria-hidden="true"></i> [General](#fa-gear-general-tab-workflows)
* <i class="fal fa-globe" aria-hidden="true"></i> [Global thresholds](#fa-globe-global-thresholds-workflows)
* <i class="fal fa-sliders-v" aria-hidden="true"></i> [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.*  

### <i class="fal fa-gear" aria-hidden="true"></i> General Tab (Workflows)

* <i class="fal fa-toggle-on" aria-hidden="true"></i> **Enable monitoring of Workflows** - When checked, the agent monitors the Workflows in the enabled [Resource Groups][Configuration - Subscription - Resource groups]
* <i class="fal fa-toggle-on" aria-hidden="true"></i> **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**

#### <i class="fal fa-filter" aria-hidden="true"></i> Workflow exclusion filter

You can exclude Workflows based on the name using a regular expression. Click the <i class="fal fa-square-plus" aria-hidden="true"></i> **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.

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>This filter removes workflows from <strong>Monitoring</strong> only: their runs are still logged. To stop <strong>logging</strong> a workflow while you keep monitoring it, use the <a href="https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/getting-started/configuration-logging/#workflow-logging-exclusion-filter">Workflow logging exclusion filter</a> on the Logging tab instead.</p></div>
</aside>

### <i class="fal fa-globe" aria-hidden="true"></i> 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.*  

* <i class="fal fa-clock-rotate-left" aria-hidden="true"></i> **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.*  

<h4 id="run-history-retention"><i class="fal fa-clock-rotate-left" aria-hidden="true"></i> Run history retention</h4>

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.

### <i class="fal fa-sliders-v" aria-hidden="true"></i> 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.*  

* <i class="fal fa-sitemap" aria-hidden="true"></i> **Name** - The name of the Azure Workflow (note: case sensitive)
* <i class="fal fa-globe" aria-hidden="true"></i> **Web Site Name** - Conditional: The name of the Web Site with the specified Workflow (Applies only to the Standard App Service Plan)
* <i class="fal fa-object-group" aria-hidden="true"></i> **Resource Group Name** - The name of the Resource Group with the Workflow
* <i class="fal fa-align-left" aria-hidden="true"></i> **Description** - User friendly description for this configuration
* <i class="fal fa-calendar-day" aria-hidden="true"></i> **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]
* <i class="fal fa-globe" aria-hidden="true"></i> **Use global thresholds** - When checked, the Monitoring thresholds use the global settings
  <aside aria-label="Note" class="nodinite-note nodinite-note--note">
  <p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
  <div class="nodinite-note__content"><p>These are essentially the same as in the <a href="#fa-globe-global-thresholds-workflows">global settings</a> and as such are not repeated in this documentation.</p></div>
  </aside>

![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).*  

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

* <i class="fal fa-monitor-waveform" aria-hidden="true"></i> [Add or manage a Monitoring Agent Configuration][]  
* <i class="fal fa-display" aria-hidden="true"></i> [Add or manage Monitor View][]  
* <i class="fal fa-user" aria-hidden="true"></i> [User access to Logic Apps Monitoring][]  
* <i class="fal fa-search" aria-hidden="true"></i> [Back to Logging][Configuration - Logging]  
* <i class="fal fa-credit-card" aria-hidden="true"></i> [Back to Subscription configuration][Configuration - Subscription]  

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

* <i class="fal fa-hard-drive" aria-hidden="true"></i> [Logic Apps Log Agent][LogicAppsAgent]  
* <i class="fal fa-desktop" aria-hidden="true"></i> [Monitoring Logic Apps][]  
* <i class="fal fa-cloud-sun" aria-hidden="true"></i> [Managing Logic Apps][]  
* <i class="fal fa-code-branch" aria-hidden="true"></i> [Configure Event Hubs][Configuration - Event Hubs]  
* <i class="fal fa-search" aria-hidden="true"></i> [Configure Logging][Configuration - Logging]  
* <i class="fal fa-wrench" aria-hidden="true"></i> [Configuration][Configure]  
* <i class="fal fa-square-plus" aria-hidden="true"></i> [Prerequisites][]  
* <i class="fal fa-bell" aria-hidden="true"></i> [Alarm Plugins][]  
* <i class="fal fa-tags" aria-hidden="true"></i> [Categories][]  
* <i class="fal fa-life-ring" aria-hidden="true"></i> [Troubleshooting][]  

[14]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogicApps/Configuration/WorkflowsTab.png
[29]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogicApps/Configuration/WorkflowExclusionFilterEntry.png
[30]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogicApps/Configuration/WorkflowsGlobalTresholdsTab.png
[31]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogicApps/Configuration/WorkflowsSpecificThresholdsTab.png
[32]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogicApps/Configuration/WorkflowsSpecificTresholdsEntry.png
[33]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogicApps/Configuration/WorkflowsGlobalRetentionThresholds.png
[34]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogicApps/Configuration/WorkflowsSpecificUseGlobalThresholdsOff.png
[35]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogicApps/Configuration/WorkflowsSpecificRetentionThresholds.png

[Add or manage a Monitoring Agent Configuration]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/add-or-manage-monitor-agent/
[Add or manage Monitor View]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/add-or-manage-monitor-view/
[Alarm Plugins]:https://docs.nodinite.com/administration/settings/alarm-plugins/features/what-is-an-alarm-plugin/
[Categories]:https://docs.nodinite.com/administration/monitor-management/categories/features/what-is-a-category/
[Configuration - Event Hubs]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/getting-started/configuration-event-hubs/
[Configuration - Logging]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/getting-started/configuration-logging/
[Configuration - Logging - Exclusion]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/getting-started/configuration-logging/#workflow-logging-exclusion-filter
[Configuration - Subscription]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/getting-started/configuration-subscription/
[Configuration - Subscription - Resource groups]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/getting-started/configuration-subscription/#fa-object-group-resource-groups-tab
[Configure]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/getting-started/configuration/
[LogicAppsAgent]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/overview/
[Managing Logic Apps]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/features/managing-logic-apps/
[Managing Logic Apps - Clear]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/features/managing-failed-runs/#fa-eraser-clear
[Managing Logic Apps - Edit]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/features/managing-logic-apps/#fa-edit-edit-thresholds-logic-app
[Monitor Views]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/what-is-a-monitor-view/
[Monitoring Logic Apps]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/features/monitoring-logic-apps/
[Monitoring Logic Apps - Retention]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/features/monitoring-logic-apps/#run-history-retention
[Monitoring Service]:https://docs.nodinite.com/core-services/monitoring-service/overview/
[Non-Events Monitoring]:https://docs.nodinite.com/logging-and-monitoring/non-events/overview/
[Prerequisites]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/getting-started/prerequisites/
[Prerequisites - Azure access]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/getting-started/prerequisites/azure-access-and-roles/
[Reduce Azure Logic Apps Run History Retention to Lower TCO]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/troubleshooting/reduce-azure-logic-apps-run-history-retention-to-lower-tco/
[RegEx]:https://docs.nodinite.com/administration/log-management/search-fields/features/search-field-expressions/regex/
[Resources]:https://docs.nodinite.com/administration/monitor-management/resources/features/what-is-a-resource/
[Troubleshooting]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/troubleshooting/overview/
[Troubleshooting - Retention]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/troubleshooting/overview/#run-history-retention-could-not-be-read
[Updating]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/updating/
[User access to logic apps monitoring]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/features/user-access-to-logic-apps-monitoring/