Skip to content

Commit bbad927

Browse files
author
gitName
committed
[APIM] Dashboard for LLM logs
1 parent 4f7e99d commit bbad927

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

articles/api-management/api-management-howto-use-azure-monitor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.custom:
1010
- devdivchpfy22
1111
- build-2025
1212
ms.topic: tutorial
13-
ms.date: 05/14/2025
13+
ms.date: 07/09/2025
1414
ms.author: danlep
1515
---
1616
# Tutorial: Monitor published APIs

articles/api-management/monitor-api-management.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Monitor Azure API Management
33
description: Learn how to monitor Azure API Management using Azure Monitor, including data collection, analysis, and alerting.
4-
ms.date: 05/14/2025
4+
ms.date: 07/09/2025
55
ms.custom:
66
- horz-monitor
77
- build-2025
@@ -49,27 +49,31 @@ Azure API Management provides analytics for your APIs so that you can analyze th
4949
5050
With API analytics, analyze the usage and performance of the APIs in your API Management instance across several dimensions, including:
5151

52-
- Time
52+
- Timeline
5353
- Geography
5454
- APIs
5555
- API operations
5656
- Products
5757
- Subscriptions
5858
- Users
5959
- Requests
60+
- Language models (for large language model APIs)
6061

6162
API analytics provides data on requests, including failed and unauthorized requests. Geography values are based on IP address mapping. There can be a delay in the availability of analytics data.
6263

6364
#### Azure Monitor-based dashboard
6465

6566
To use the Azure Monitor-based dashboard, you need a Log Analytics workspace as a data source for API Management gateway logs.
6667

67-
If you need to configure one, the following are brief steps to send gateway logs to a Log Analytics workspace. For more information, see [Tutorial: Monitor published APIs](api-management-howto-use-azure-monitor.md#resource-logs). This procedure is a one-time setup.
68+
If you need to configure one, the following are brief steps to send gateway logs to a Log Analytics workspace. For more information, see [Enable diagnostic setting for Azure Monitor logs](#enable-diagnostic-setting-for-azure-monitor-logs), later in this article. This procedure is a one-time setup.
6869

6970
1. In the [Azure portal](https://portal.azure.com), navigate to your API Management instance.
7071
1. In the left-hand menu, under **Monitoring**, select **Diagnostic settings** > **+ Add diagnostic setting**.
7172
1. Enter a descriptive name for the diagnostic setting.
7273
1. In **Logs**, select **Logs related to ApiManagement Gateway**.
74+
> [!TIP]
75+
> To collect logs for large language model (LLM) APIs for display on the Azure Monitor-based dashboard, also select **Logs related to generative AI gateway**.
76+
7377
1. In **Destination details**, select **Send to Log Analytics** and select a Log Analytics workspace in the same or a different subscription. If you need to create a workspace, see [Create a Log Analytics workspace](/azure/azure-monitor/logs/quick-create-workspace).
7478
1. Make sure **Resource specific** is selected as the destination table.
7579
1. Select **Save**.
@@ -111,7 +115,7 @@ This section shows you how to enable Azure Monitor logs for auditing and trouble
111115
|API Management gateway | Requests processed by the API Management gateway, including HTTP methods, protocols, request and response bodies, headers, timings, error details, and cache involvement. | Adjust settings for all APIs, or override them for individual APIs.<br/><br/>In API Management instances configured with [workspaces](workspaces-overview.md), gateway logs can be collected individually for each workspace and aggregated for centralized access by the platform team. |
112116
|WebSocket connections | Events for [WebSocket API](websocket-api.md) connections, starting from the handshake until the connection is terminated. |
113117
|Developer portal usage | Requests that are received and processed by the API Management [developer portal](developer-portal-overview.md), including user authentication actions, views of API details, and API testing in the interactive test console.|
114-
| Generative AI gateway | Requests processed by the API Management gateway for large language model (LLM) REST APIs such as Azure OpenAI APIs, including token usage, models, and optionally details of request prompts and response completions. | Enable logging of request messages and/or response messages for specific LLM APIs.
118+
| Generative AI gateway | Requests processed by the API Management gateway for large language model (LLM) REST APIs such as Azure FoundryAPIs, including token usage, models, and optionally details of request prompts and response completions. | Enable logging of request messages and/or response messages for specific LLM APIs.
115119

116120
For more information, see [API Management monitoring data reference](monitor-api-management-reference.md).
117121

includes/api-management-diagnostic-settings.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: dlepow
33
ms.service: azure-api-management
44
ms.topic: include
5-
ms.date: 02/24/2025
5+
ms.date: 07/09/2025
66
ms.author: danlep
77
ms.custom:
88
- build-2025
@@ -26,7 +26,8 @@ To configure a diagnostic setting for collection of resource logs:
2626

2727

2828
> [!TIP]
29-
> If you select a Log Analytics workspace, you can choose to store the data in a resource-specific table (for example, an ApiManagementGatewayLogs table) or store in the general AzureDiagnostics table. We recommend using the resource-specific table for log destinations that support it. [Learn more](/azure/azure-monitor/essentials/resource-logs#send-to-log-analytics-workspace)
29+
> * To view API analytics in the [Azure Monitor-based dashboard](../articles/api-management/monitor-api-management.md#access-the-dashboard) for API Management (**Monitoring** > **Analytics** blade), select an Azure Log Analytics workspace as the destination.
30+
> * If you select a Log Analytics workspace, you can choose to store the data in a resource-specific table (for example, an ApiManagementGatewayLogs table) or store in the general AzureDiagnostics table. We recommend using the resource-specific table for log destinations that support it. [Learn more](/azure/azure-monitor/essentials/resource-logs#send-to-log-analytics-workspace)
3031
1. After configuring details for the log destination or destinations, select **Save**.
3132

3233
> [!NOTE]
11.7 KB
Loading

0 commit comments

Comments
 (0)