Skip to content

Commit d6d8d27

Browse files
author
Jill Grant
authored
Merge pull request #268697 from v-thepet/logic-monitor
Azure Monitor horizontals - Logic Apps
2 parents 8160be3 + 1ead655 commit d6d8d27

File tree

3 files changed

+215
-4
lines changed

3 files changed

+215
-4
lines changed
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
---
2+
title: Monitoring overview
3+
description: Start here to learn about monitoring for Azure Logic Apps.
4+
ms.date: 03/19/2024
5+
ms.custom: horz-monitor
6+
ms.topic: conceptual
7+
ms.service: logic-apps
8+
---
9+
10+
# Overview: Monitor Azure Logic Apps
11+
12+
[!INCLUDE [horz-monitor-intro](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-intro.md)]
13+
14+
For a detailed guide describing how to monitor Azure Logic Apps workflow run status, review trigger and workflow run history, and set up alerts, see [Monitor workflows](monitor-logic-apps.md).
15+
16+
[!INCLUDE [horz-monitor-insights](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-insights.md)]
17+
18+
### Application Insights
19+
20+
You can set up Application Insights for a workspace or for a logic app after creation.
21+
22+
[Enable and view enhanced telemetry in Application Insights for Standard workflows in Azure Logic Apps](enable-enhanced-telemetry-standard-workflows.md) shows how to turn on enhanced telemetry collection for a Standard logic app in Application Insights and view the collected data after the workflow finishes a run.
23+
24+
If your logic app's creation and deployment settings support using Application Insights, you can optionally enable diagnostics logging and tracing for your logic app's workflow. For more information, see [Enable or open Application Insights after deployment](create-single-tenant-workflows-azure-portal.md#enable-open-application-insights).
25+
26+
[!INCLUDE [horz-monitor-resource-types](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-resource-types.md)]
27+
For more information about the resource types for Azure Logic Apps, see [Azure Logic Apps monitoring data reference](monitor-logic-apps-reference.md).
28+
29+
[!INCLUDE [horz-monitor-data-storage](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-data-storage.md)]
30+
31+
[!INCLUDE [horz-monitor-platform-metrics](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-platform-metrics.md)]
32+
33+
- For a detailed guide showing how to check health and performance metrics for both Consumption and Standard logic app workflows, see [View metrics for workflow health and performance](view-workflow-metrics.md).
34+
- For a list of available metrics for Azure Logic Apps, see [Azure Logic Apps monitoring data reference](monitor-logic-apps-reference.md#metrics).
35+
36+
[!INCLUDE [horz-monitor-resource-logs](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-resource-logs.md)]
37+
38+
- For a detailed walkthrough showing how to set up Azure Monitor Logs and a Log Analytics workspace for Azure Logic Apps workflows, see [Monitor and collect diagnostic data for workflows in Azure Logic Apps](monitor-workflows-collect-diagnostic-data.md).
39+
40+
- To learn how to set up diagnostic logging and monitor logic apps in Microsoft Defender for Cloud, see [Set up logging to monitor logic apps in Microsoft Defender for Cloud](healthy-unhealthy-resource.md).
41+
42+
- For the available resource log categories, their associated Log Analytics tables, and the logs schemas for Azure Logic Apps, see [Azure Logic Apps monitoring data reference](monitor-logic-apps-reference.md#resource-logs).
43+
44+
## Monitoring for B2B workflows
45+
46+
Azure Logic Apps includes built-in tracking that you can enable for parts of your workflow. To help you monitor the successful delivery or receipt, errors, and properties for business-to-business (B2B) messages, you can create and use AS2, X12, and custom tracking schemas in your integration account.
47+
48+
- To monitor an automated business-to-business (B2B) messaging workflow in Azure Logic Apps, see [Set up Azure Monitor logs and collect diagnostics data for B2B messages](monitor-b2b-messages-log-analytics.md).
49+
- For a reference guide to the syntax and attributes for the tracking schemas, see [Tracking schemas for monitoring B2B messages](tracking-schemas-as2-x12-custom.md).
50+
51+
[!INCLUDE [horz-monitor-activity-log](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-activity-log.md)]
52+
53+
[!INCLUDE [horz-monitor-analyze-data](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-analyze-data.md)]
54+
55+
[!INCLUDE [horz-monitor-external-tools](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-external-tools.md)]
56+
57+
[!INCLUDE [horz-monitor-kusto-queries](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-kusto-queries.md)]
58+
59+
For a detailed guide showing how to view and create queries for Azure Logic Apps, see [View and create queries for monitoring and tracking](create-monitoring-tracking-queries.md).
60+
61+
### Sample Kusto queries
62+
63+
Here are some sample queries for analyzing Azure Logic Apps workflow executions.
64+
65+
#### Total executions
66+
67+
Total billable executions by operation name.
68+
69+
```kusto
70+
AzureDiagnostics
71+
| where ResourceProvider == "MICROSOFT.LOGIC"
72+
| where Category == "WorkflowRuntime"
73+
| where OperationName has "workflowTriggerStarted" or OperationName has "workflowActionStarted"
74+
| summarize dcount(resource_runId_s) by OperationName, resource_workflowName_s
75+
```
76+
77+
#### Execution distribution
78+
79+
Hourly time chart for logic app execution distribution by workflow.
80+
81+
```kusto
82+
AzureDiagnostics
83+
| where ResourceProvider == "MICROSOFT.LOGIC"
84+
| where Category == "WorkflowRuntime"
85+
| where OperationName has "workflowRunStarted"
86+
| summarize dcount(resource_runId_s) by bin(TimeGenerated, 1h), resource_workflowName_s
87+
| render timechart
88+
```
89+
90+
#### Execution status summary
91+
92+
Completed executions by workflow, status, and error.
93+
94+
```kusto
95+
AzureDiagnostics
96+
| where ResourceProvider == "MICROSOFT.LOGIC"
97+
| where OperationName has "workflowRunCompleted"
98+
| summarize dcount(resource_runId_s) by resource_workflowName_s, status_s, error_code_s
99+
| project LogicAppName = resource_workflowName_s , NumberOfExecutions = dcount_resource_runId_s , RunStatus = status_s , Error = error_code_s
100+
```
101+
102+
#### Triggered failures count
103+
104+
Action or trigger failures for all logic app workflow executions by resource name.
105+
106+
```kusto
107+
AzureDiagnostics
108+
| where ResourceProvider == "MICROSOFT.LOGIC"
109+
| where Category == "WorkflowRuntime"
110+
| where status_s == "Failed"
111+
| where OperationName has "workflowActionCompleted" or OperationName has "workflowTriggerCompleted"
112+
| extend ResourceName = coalesce(resource_actionName_s, resource_triggerName_s)
113+
| extend ResourceCategory = substring(OperationName, 34, strlen(OperationName) - 43) | summarize dcount(resource_runId_s) by code_s, ResourceName, resource_workflowName_s, ResourceCategory, _ResourceId
114+
| project ResourceCategory, ResourceName , FailureCount = dcount_resource_runId_s , ErrorCode = code_s, LogicAppName = resource_workflowName_s, _ResourceId
115+
| order by FailureCount desc
116+
```
117+
118+
[!INCLUDE [horz-monitor-alerts](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-alerts.md)]
119+
120+
[!INCLUDE [horz-monitor-insights-alerts](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-insights-alerts.md)]
121+
122+
> [!NOTE]
123+
> Available alert signals differ between Consumption and Standard logic apps. For example, Consumption logic apps have many trigger-related signals, such as **Triggers Completed** and **Triggers Failed**, while Standard workflows have the **Workflow Triggers Completed Count** and **Workflow Triggers Failure Rate** signals.
124+
125+
### Azure Logic Apps alert rules
126+
127+
The following table lists some alert rules for Azure Logic Apps. These alerts are just examples. You can set alerts for any metric, log entry, or activity log entry that's listed in the [Azure Logic Apps monitoring data reference](monitor-logic-apps-reference.md).
128+
129+
| Alert type | Condition | Description |
130+
|:---|:---|:---|
131+
| Metric | Triggers Failed | Whenever the count for **Triggers Failed** is greater than or equal to 1 |
132+
| Activity Log | Workflow Deleted | Whenever the Activity Log has an event with **Category='Administrative', Signal name='Delete Workflow (Workflow)'** |
133+
134+
[!INCLUDE [horz-monitor-advisor-recommendations](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-advisor-recommendations.md)]
135+
136+
## Related content
137+
138+
- For reference information about the metrics, logs, and other important values created for Azure Logic Apps, see [Azure Logic Apps monitoring data reference](monitor-logic-apps-reference.md).
139+
- For general details on monitoring Azure resources, see [Monitoring Azure resources with Azure Monitor](/azure/azure-monitor/essentials/monitor-azure-resource).
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
title: Monitoring data reference for Azure Logic Apps
3+
description: This article contains important reference material you need when you monitor Azure Logic Apps.
4+
ms.date: 03/19/2024
5+
ms.custom: horz-monitor
6+
ms.topic: reference
7+
ms.service: logic-apps
8+
---
9+
10+
# Azure Logic Apps monitoring data reference
11+
12+
[!INCLUDE [horz-monitor-ref-intro](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-intro.md)]
13+
14+
For details about the data you can collect for Azure Logic Apps and how to use that data, see [Monitor Azure Logic Apps](monitor-logic-apps.md).
15+
16+
[!INCLUDE [horz-monitor-ref-metrics-intro](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-intro.md)]
17+
18+
### Supported metrics for Microsoft.Logic/IntegrationServiceEnvironments
19+
20+
The following table lists the metrics available for the **Microsoft.Logic/IntegrationServiceEnvironments** resource type.
21+
[!INCLUDE [horz-monitor-ref-metrics-tableheader](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-tableheader.md)]
22+
23+
[!INCLUDE [Microsoft.Logic/IntegrationServiceEnvironments](~/azure-reference-other-repo/azure-monitor-ref/supported-metrics/includes/microsoft-logic-integrationserviceenvironments-metrics-include.md)]
24+
25+
### Supported metrics for Microsoft.Logic/Workflows
26+
27+
The following table lists the metrics available for the **Microsoft.Logic/Workflows** resource type.
28+
[!INCLUDE [horz-monitor-ref-metrics-tableheader](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-tableheader.md)]
29+
30+
[!INCLUDE [Microsoft.Logic/Workflows](~/azure-reference-other-repo/azure-monitor-ref/supported-metrics/includes/microsoft-logic-workflows-metrics-include.md)]
31+
32+
[!INCLUDE [horz-monitor-ref-metrics-dimensions-intro](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-dimensions-intro.md)]
33+
34+
[!INCLUDE [horz-monitor-ref-no-metrics-dimensions](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-no-metrics-dimensions.md)]
35+
36+
[!INCLUDE [horz-monitor-ref-resource-logs](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-resource-logs.md)]
37+
38+
### Supported resource logs for Microsoft.Logic/IntegrationAccounts
39+
40+
[!INCLUDE [Microsoft.Logic/IntegrationAccounts](~/azure-reference-other-repo/azure-monitor-ref/supported-logs/includes/microsoft-logic-integrationaccounts-logs-include.md)]
41+
42+
### Supported resource logs for Microsoft.Logic/Workflows
43+
44+
[!INCLUDE [Microsoft.Logic/Workflows](~/azure-reference-other-repo/azure-monitor-ref/supported-logs/includes/microsoft-logic-workflows-logs-include.md)]
45+
46+
[!INCLUDE [horz-monitor-ref-logs-tables](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-logs-tables.md)]
47+
48+
### Azure Logic Apps
49+
Microsoft.Logic/workflows
50+
51+
- [AzureActivity](/azure/azure-monitor/reference/tables/AzureActivity#columns)
52+
- [AzureMetrics](/azure/azure-monitor/reference/tables/AzureMetrics#columns)
53+
- [AzureDiagnostics](/azure/azure-monitor/reference/tables/AzureDiagnostics#columns). Logs are collected in the **AzureDiagnostics** table under the resource provider name of `MICROSOFT.LOGIC`.
54+
- [LogicAppWorkflowRuntime](/azure/azure-monitor/reference/tables/LogicAppWorkflowRuntime#columns)
55+
56+
### Integration Account
57+
Microsoft.Logic/integrationAccounts
58+
59+
- [AzureActivity](/azure/azure-monitor/reference/tables/AzureActivity#columns)
60+
61+
[!INCLUDE [horz-monitor-ref-activity-log](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-activity-log.md)]
62+
- [Microsoft.Logic resource provider operations](/azure/role-based-access-control/permissions/integration#microsoftlogic)
63+
64+
## Related content
65+
66+
- For an overview of monitoring Azure Logic Apps, see [Monitor Azure Logic Apps](monitor-logic-apps-overview.md).
67+
- For a description of monitoring workflow status and history and creating alerts, see [Monitor workflows](monitor-logic-apps.md).
68+
- For details about monitoring Azure resources, see [Monitor Azure resources with Azure Monitor](/azure/azure-monitor/essentials/monitor-azure-resource).

articles/logic-apps/toc.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,22 +433,24 @@ items:
433433
href: logic-apps-deploy-azure-resource-manager-templates.md
434434
- name: Monitor
435435
items:
436+
- name: Overview
437+
href: monitor-logic-apps-overview.md
436438
- name: Monitor workflows
437439
href: monitor-logic-apps.md
438440
- name: View health and performance metrics
439441
href: view-workflow-metrics.md
442+
- name: Enable and view enhanced telemetry for Standard workflows
443+
href: enable-enhanced-telemetry-standard-workflows.md
440444
- name: Monitor and collect diagnostic data for workflows
441445
href: monitor-workflows-collect-diagnostic-data.md
442446
- name: Monitor workflows in Microsoft Defender for Cloud
443447
href: healthy-unhealthy-resource.md
444448
- name: Monitor B2B messages with Azure Monitor logs
445449
href: monitor-b2b-messages-log-analytics.md
446-
- name: Create monitoring and tracking queries
447-
href: create-monitoring-tracking-queries.md
448-
- name: Enable and view enhanced telemetry for Standard workflows
449-
href: enable-enhanced-telemetry-standard-workflows.md
450450
- name: Tracking schemas for monitoring messages
451451
href: tracking-schemas-as2-x12-custom.md
452+
- name: Create monitoring and tracking queries
453+
href: create-monitoring-tracking-queries.md
452454
- name: Business continuity and disaster recovery
453455
items:
454456
- name: Set up zone redundant logic apps
@@ -482,6 +484,8 @@ items:
482484
href: /connectors/connector-reference/connector-reference-logicapps-connectors
483485
- name: Built-in service provider connector reference - Standard
484486
href: /azure/logic-apps/connectors/built-in/reference
487+
- name: Monitoring data reference
488+
href: monitor-logic-apps-reference.md
485489
- name: Service limits and configuration
486490
href: logic-apps-limits-and-config.md
487491
- name: Azure CLI - Consumption

0 commit comments

Comments
 (0)