Skip to content

Latest commit

 

History

History
63 lines (39 loc) · 4.23 KB

visualize-using-managed-grafana-dashboard.md

File metadata and controls

63 lines (39 loc) · 4.23 KB
title description author ms.service ms.topic ms.date ms.author
Visualize Azure API Management monitoring data with Azure Managed Grafana
Learn how to use an Azure Managed Grafana dashboard to visualize monitoring data from Azure API Management.
dlepow
api-management
how-to
10/17/2022
danlep

Visualize API Management monitoring data using a Managed Grafana dashboard

[!INCLUDE api-management-availability-premium-dev-standard-basic-standardv2-basicv2]

You can use Azure Managed Grafana to visualize API Management monitoring data that is collected into a Log Analytics workspace. Use a prebuilt API Management dashboard for real-time visualization of logs and metrics collected from your API Management instance.

Prerequisites

  • API Management instance

    • To visualize resource logs and metrics for API Management, configure diagnostic settings to collect resource logs and send them to a Log Analytics workspace

    • To visualize detailed data about requests to the API Management gateway, integrate your API Management instance with Application Insights.

    [!NOTE] To visualize data in a single dashboard, configure the Log Analytics workspace for the diagnostic settings and the Application Insights instance in the same resource group as your API Management instance.

  • Managed Grafana workspace

    • To create a Managed Grafana instance and workspace, see the quickstart for the portal or the Azure CLI.

    • The Managed Grafana instance must be in the same subscription as the API Management instance.

    • When created, the Grafana workspace is automatically assigned a Microsoft Entra managed identity, which is assigned the Monitor Reader role on the subscription. This gives you immediate access to Azure Monitor from the new Grafana workspace without needing to set permissions manually. Learn more about configuring data sources for Managed Grafana.

Import API Management dashboard

First import the API Management dashboard to your Management Grafana workspace.

To import the dashboard:

  1. Go to your Azure Managed Grafana workspace. In the portal, on the Overview page of your Managed Grafana instance, select the Endpoint link.
  2. In the Managed Grafana workspace, go to Dashboards > Browse > Import.
  3. On the Import page, under Import via grafana.com, enter 16604 and select Load.
  4. Select an Azure Monitor data source, review or update the other options, and select Import.

Use API Management dashboard

  1. In the Managed Grafana workspace, go to Dashboards > Browse and select your API Management dashboard.
  2. In the dropdowns at the top, make selections for your API Management instance. If configured, select an Application Insights instance and a Log Analytics workspace.

Review the default visualizations on the dashboard, which will appear similar to the following screenshot:

:::image type="content" source="media/visualize-using-managed-grafana-dashboard/api-management-dashboard.png" alt-text="Screenshot of API Management dashboard in Managed Grafana workspace." lightbox="media/visualize-using-managed-grafana-dashboard/api-management-dashboard.png":::

Next steps