Edit

Supported metrics for Microsoft.ApiManagement/service

The following table lists the metrics available for the Microsoft.ApiManagement/service resource type.

Table headings

  • Metric - The metric display name as it appears in the Azure portal.
  • Name in Rest API - Metric name as referred to in the REST API.
  • Advanced platform metrics - A premium, paid tier of platform metrics in Azure Monitor that provide more granular observability for Azure resources.
  • Unit - Unit of measure.
  • Aggregation - The default aggregation type. Valid values: Average, Minimum, Maximum, Total, Count.
  • Dimensions - Dimensions available for the metric.
  • Time Grains - Intervals at which the metric is sampled. For example, PT1M indicates that the metric is sampled every minute, PT30M every 30 minutes, PT1H every hour, and so on.
  • DS Export - Shows whether the metric is exportable to Azure Monitor Logs via Diagnostic Settings.

For information on exporting metrics, see - Metrics export using data collection rules and Create diagnostic settings in Azure Monitor.

For information on metric retention, see Azure Monitor Metrics overview.

For a list of supported logs, see Supported log categories - Microsoft.ApiManagement/service

Category: Capacity

Metric Name in REST API Advanced platform metrics Unit Aggregation Dimensions Time Grains DS Export
Capacity

Utilization metric for ApiManagement service. Note: For skus other than Premium, 'Max' aggregation will show the value as 0.
Capacity No Percent Average, Maximum Location PT1M Yes
CPU Percentage of Gateway

CPU Percentage of Gateway for SKUv2 services
CpuPercent_Gateway No Percent Average, Maximum <none> PT1M Yes
Memory Percentage of Gateway

Memory Percentage of Gateway for SKUv2 services
MemoryPercent_Gateway No Percent Average, Maximum <none> PT1M Yes

Category: EventHub Events

Metric Name in REST API Advanced platform metrics Unit Aggregation Dimensions Time Grains DS Export
Dropped EventHub Events

Number of events skipped because of queue size limit reached
EventHubDroppedEvents No Count Total (Sum) Location PT1M Yes
Rejected EventHub Events

Number of rejected EventHub events (wrong configuration or unauthorized)
EventHubRejectedEvents No Count Total (Sum) Location PT1M Yes
Successful EventHub Events

Number of successful EventHub events
EventHubSuccessfulEvents No Count Total (Sum) Location PT1M Yes
Throttled EventHub Events

Number of throttled EventHub events
EventHubThrottledEvents No Count Total (Sum) Location PT1M Yes
Timed Out EventHub Events

Number of timed out EventHub events
EventHubTimedoutEvents No Count Total (Sum) Location PT1M Yes
Size of EventHub Events

Total size of EventHub events in bytes
EventHubTotalBytesSent No Bytes Total (Sum) Location PT1M Yes
Total EventHub Events

Number of events sent to EventHub
EventHubTotalEvents No Count Total (Sum) Location PT1M Yes
Failed EventHub Events

Number of failed EventHub events
EventHubTotalFailedEvents No Count Total (Sum) Location PT1M Yes

Category: Gateway Requests

Metric Name in REST API Advanced platform metrics Unit Aggregation Dimensions Time Grains DS Export
Duration of Backend Requests

Duration of Backend Requests in milliseconds
BackendDuration No MilliSeconds Average, Maximum, Minimum Location, Hostname, ApiId PT1M Yes
Overall Duration of Gateway Requests

Overall Duration of Gateway Requests in milliseconds
Duration No MilliSeconds Average, Maximum, Minimum Location, Hostname, ApiId PT1M Yes
Failed Gateway Requests (Deprecated)

Number of failures in gateway requests - Use multi-dimension request metric with GatewayResponseCodeCategory dimension instead
FailedRequests No Count Total (Sum) Location, Hostname PT1M Yes
Other Gateway Requests (Deprecated)

Number of other gateway requests - Use multi-dimension request metric with GatewayResponseCodeCategory dimension instead
OtherRequests No Count Total (Sum) Location, Hostname PT1M Yes
Requests

Gateway request metrics with multiple dimensions
Requests No Count Total (Sum), Maximum, Minimum Location, Hostname, LastErrorReason, BackendResponseCode, GatewayResponseCode, BackendResponseCodeCategory, GatewayResponseCodeCategory, ApiId PT1M Yes
Successful Gateway Requests (Deprecated)

Number of successful gateway requests - Use multi-dimension request metric with GatewayResponseCodeCategory dimension instead
SuccessfulRequests No Count Total (Sum) Location, Hostname PT1M Yes
Total Gateway Requests (Deprecated)

Number of gateway requests - Use multi-dimension request metric with GatewayResponseCodeCategory dimension instead
TotalRequests No Count Total (Sum) Location, Hostname PT1M Yes
Unauthorized Gateway Requests (Deprecated)

Number of unauthorized gateway requests - Use multi-dimension request metric with GatewayResponseCodeCategory dimension instead
UnauthorizedRequests No Count Total (Sum) Location, Hostname PT1M Yes

Category: Gateway WebSocket

Metric Name in REST API Advanced platform metrics Unit Aggregation Dimensions Time Grains DS Export
WebSocket Connection Attempts (Preview)

Count of WebSocket connection attempts based on selected source and destination
ConnectionAttempts No Count Total (Sum), Average Location, Source, Destination, State PT1M Yes
WebSocket Messages (Preview)

Count of WebSocket messages based on selected source and destination
WebSocketMessages No Count Total (Sum), Average Location, Source, Destination PT1M Yes

Category: Network Status

Metric Name in REST API Advanced platform metrics Unit Aggregation Dimensions Time Grains DS Export
Network Connectivity Status of Resources (Preview)

Network Connectivity status of dependent resource types from API Management service
NetworkConnectivity No Count Total (Sum), Average Location, ResourceType PT1M Yes

Next steps