Monitoring the health and performance of Azure Logic Apps workflows is crucial for ensuring they run smoothly and efficiently. Azure provides a suite of tools and features to help you track, analyze, and troubleshoot your workflows. Below is a comprehensive guide to monitoring the health and performance of your Logic Apps workflows:
Azure Monitor Metrics provides real-time insights into the performance and health of your Logic Apps workflows.
Azure Monitor Logs allows you to query and analyze detailed logs for your Logic Apps using Log Analytics.
AzureDiagnostics | where ResourceProvider == "MICROSOFT.LOGIC" | where Category == "WorkflowRuntime" | where status_s == "Failed"
AzureDiagnostics | where ResourceProvider == "MICROSOFT.LOGIC" | where Category == "WorkflowRuntime" | where OperationName == "Microsoft.Logic/workflows/workflowTriggerCompleted" | extend Latency = todouble(duration_s) | summarize AvgLatency = avg(Latency) by bin(TimeGenerated, 5m)
Application Insights provides advanced monitoring and diagnostics for your Logic Apps, including performance metrics and dependency tracking.
requests | where success == false | summarize Count = count() by operation_Name
dependencies | summarize AvgDuration = avg(duration) by target
For Logic Apps (Standard), you can use the Health Check feature to monitor workflow health.
You can create custom dashboards in the Azure portal to visualize metrics and logs for your Logic Apps.
Configure alerts to notify you when specific metrics exceed thresholds (e.g., high failure rates or latency).
Track the performance and health of external services or APIs used by your workflows:
Tool | Key Metrics |
---|---|
Azure Monitor Metrics | Runs Started, Runs Completed, Runs Failed, Trigger Latency, Action Latency |
Azure Monitor Logs | Detailed execution logs, custom queries using KQL |
Application Insights | Request rates, dependency performance, failures, traces |
Health Check | Workflow health, dependency health, runtime environment health |