Azure Dashboards

Srilesh J 0 Reputation points
2024-04-22T13:30:58.49+00:00

We have multiple logic apps deployed in 2 different subscriptions. I need to monitor the succeeded and failed counts of each logic app name using dashboards. Could you suggest me what is the method to add n number of logic apps at once in azure metrics?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,037 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shawn Collins 615 Reputation points
    2024-04-23T02:07:32.5+00:00

    To monitor multiple Logic Apps across different Azure subscriptions for success and failure counts, you can use Azure Monitor, which allows you to create custom dashboards displaying metrics and insights from various Azure resources.

    Here's a step-by-step guide to add multiple Logic Apps from different subscriptions into an Azure Metrics dashboard:

    Step 1: Set Up Azure Monitor

    Azure Monitor collects and analyzes metrics, logs, and events from Azure resources. Ensure that Logic Apps in both subscriptions are sending metrics to Azure Monitor.

    Ensure Metrics Collection: Verify that the Logic Apps in each subscription are configured to send metrics to Azure Monitor.

    Cross-Subscription Visibility: Ensure you have the necessary permissions to access both subscriptions and their Logic Apps.

    Step 2: Create an Azure Dashboard

    To monitor Logic Apps' success and failure counts, create an Azure dashboard to display the desired metrics.

    Create a Dashboard:

    Open the Azure portal.

    Navigate to "Dashboard."

    Click "New dashboard" to create a custom dashboard.

    Step 3: Add a Metrics Chart to the Dashboard

    Once the dashboard is created, you can add a metrics chart to visualize Logic Apps' success and failure counts.

    Add a Metrics Chart:

    Click "Edit" in the dashboard.

    Click "Add an Azure Metric."

    In the "Resource" field, select one of your Logic Apps. Ensure you select the correct subscription and resource group.

    In "Metric Namespace," choose "Microsoft.Logic/workflows."

    In "Metric," select "Runs Succeeded" or "Runs Failed," depending on what you want to monitor.

    Choose the aggregation method (like "Count") and set the time range.

    Add the metric to the dashboard.

    Step 4: Add Multiple Logic Apps to the Metrics Chart

    Azure Metrics allows you to add multiple resources to a single chart. This can be used to monitor multiple Logic Apps at once.

    Add Multiple Logic Apps:

    With the metrics chart open, click "Add Metric."

    Select the Logic App from the other subscription.

    Configure the metric (like "Runs Succeeded" or "Runs Failed") and aggregation.

    Repeat this process to add more Logic Apps to the chart.

    Configure the chart to display metrics in a way that suits your needs (like line chart or bar chart).

    Step 5: Customize and Share the Dashboard

    Customize the dashboard to display the metrics in a clear, understandable manner.

    Add Additional Widgets: You can add other widgets, like text boxes, to provide context or instructions.

    Share the Dashboard: Once the dashboard is set up, share it with others who need access to monitor Logic Apps.

    Click "Share" in the dashboard.

    Choose whether to share with individual users, groups, or everyone with specific permissions.

    Additional Considerations

    Use Azure Log Analytics: For more advanced monitoring and custom queries, consider using Azure Log Analytics with Kusto Query Language (KQL). This allows you to create complex queries and visualize data from Logic Apps.

    Create Alerts: To proactively monitor Logic Apps, set up alerts in Azure Monitor based on specific conditions, like when the number of failed runs exceeds a certain threshold.

    By following these steps, you can create a custom Azure dashboard that monitors multiple Logic Apps across different subscriptions, allowing you to track succeeded and failed counts easily.

    0 comments No comments