- 8 minutes to read

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. 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. The other tabs are on the Subscription configuration page.

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
Min execution count Too few runs A nightly import that didn't start
Max execution count Too many runs A trigger stuck in a retry storm
Max Action invocation count Too many Actions in a single run A loop processing far more items than normal
Duration Runs that take too long A slow backend holding up a workflow
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

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:

graph LR WF["fa:fa-sitemap Workflows
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
or Global thresholds"] TH --> ST["fa:fa-heart-pulse Resource state
OK, Warning, or Error"] ST --> MV["fa:fa-display Monitor Views
and Alarm Plugins"] style WF fill:#2678BD style EX fill:#E47528 style TH fill:#3F827B style MV fill:#9E59BB

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

Global thresholds vs Specific thresholds

Level Where you set it Applies to When to use it
Global thresholds Global thresholds tab Every monitored workflow without its own entry ✅ Recommended starting point
Specific thresholds Specific thresholds 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.

Workflows tab

The Workflows tab has three tabs:

Workflows tab of a Subscription configuration
The Workflows tab with its General, Global thresholds, and Specific thresholds tabs.

General Tab (Workflows)

  • Enable monitoring of Workflows - When checked, the agent monitors the Workflows in the enabled Resource Groups
  • Enable trigger evaluation of Workflows - When checked, the agent monitors the triggers of the enabled workflows
  • Workflow exclusion filter - The list of RegEx expressions in use to exclude Azure Workflows from Monitoring

Workflow exclusion filter

You can exclude Workflows based on the name using a regular expression. Click the Add button to add a new entry. Workflow exclusion filter entry
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 on the Logging tab instead.

Global Thresholds (Workflows)

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

  • 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 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
With Max Warning 16 and Max Error 91, a workflow on the Azure default of 90 days gets a Warning, not an Error.

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

  • Agent database. Retention monitoring needs the agent database at version 6.0.0.66 or later; update the agent 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.

Specific thresholds tab (Workflows)

For a specific Workflow, you can override the global settings. Specific thresholds tab - Workflows (6.1.0.11)
The Specific thresholds tab lists the workflows that have their own thresholds.

  • Name - The name of the Azure Workflow (note: case sensitive)
  • Web Site Name - Conditional: The name of the Web Site with the specified Workflow (Applies only to the Standard App Service Plan)
  • Resource Group Name - The name of the Resource Group with the Workflow
  • Description - User friendly description for this configuration
  • 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
  • Use global thresholds - When checked, the Monitoring thresholds use the global settings

    Note

    These are essentially the same as in the global settings and as such are not repeated in this documentation.

Specific thresholds entry - Workflows (6.1.0.11)
Example of a specific thresholds entry for one workflow.

The entry has the same four 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
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
This workflow must keep at least 30 days of run history (Warning) and never less than 7 (Error).

Next Steps