แก้ไข

แชร์ผ่าน


Supported metrics with Azure Monitor

Note

This list is largely auto-generated. Any modification made to this list via GitHub might be written over without warning. Contact the author of this article for details on how to make permanent updates.

Last updated: 11/01/2024.

Azure Monitor provides several ways to interact with metrics, including charting them in the Azure portal, accessing them through the REST API, or querying them by using PowerShell or the Azure CLI (Command Line Interface).

This article is a complete list of all platform (that is, automatically collected) metrics currently available with the consolidated metric pipeline in Azure Monitor. Metrics changed or added after the date at the top of this article might not yet appear in the list. To query for and access the list of metrics programmatically, use the 2018-01-01 api-version. Other metrics not in this list might be available in the portal or through legacy APIs.

The metrics are organized by resource provider and resource type. For a list of services and the resource providers and types that belong to them, see Resource providers for Azure services.

Exporting platform metrics to other locations

You can export the platform metrics from the Azure monitor pipeline to other locations in one of two ways:

  • Use the metrics REST API.
  • Use diagnostic settings to route platform metrics to:
    • Azure Storage.
    • Azure Monitor Logs (and thus Log Analytics).
    • Event hubs, which is how you get them to non-Microsoft systems.

Using diagnostic settings is the easiest way to route the metrics, but there are some limitations:

  • Exportability. All metrics are exportable through the REST API, but some can't be exported through diagnostic settings because of intricacies in the Azure Monitor back end. The column "Exportable via Diagnostic Settings" in the following tables lists which metrics can be exported in this way.

  • Multi-dimensional metrics. Sending multi-dimensional metrics to other locations via diagnostic settings is not currently supported. Metrics with dimensions are exported as flattened single-dimensional metrics, aggregated across dimension values.

    For example, the Incoming Messages metric on an event hub can be explored and charted on a per-queue level. But when the metric is exported via diagnostic settings, it will be represented as all incoming messages across all queues in the event hub.

Guest OS and host OS metrics

Metrics for the guest operating system (guest OS) that runs in Azure Virtual Machines, Service Fabric, and Cloud Services are not listed here. Guest OS metrics must be collected through one or more agents that run on or as part of the guest operating system. Guest OS metrics include performance counters that track guest CPU percentage or memory usage, both of which are frequently used for autoscaling or alerting.

Host OS metrics are available and listed in the tables. Host OS metrics relate to the Hyper-V session that's hosting your guest OS session.

Tip

A best practice is to use and configure the Azure Monitor agent to send guest OS performance metrics into the same Azure Monitor metric database where platform metrics are stored. The agent routes guest OS metrics through the custom metrics API. You can then chart, alert, and otherwise use guest OS metrics like platform metrics.

Alternatively or in addition, you can send the guest OS metrics to Azure Monitor Logs by using the same agent. There you can query on those metrics in combination with non-metric data by using Log Analytics. Standard Log Analytics workspace costs would then apply.

The Azure Monitor agent replaces the Azure Diagnostics extension and Log Analytics agent, which were previously used for guest OS routing. For important additional information, see Overview of Azure Monitor agents.

Supported metrics and log categories by resource type

Following table lists metrics and log categories available for each resource type.

Resource Provider Metrics Log Categories
Microsoft.AAD DomainServices
DomainServices
Microsoft.AgFoodPlatform N/A farmBeats
Microsoft.AnalysisServices servers
servers
Microsoft.ApiManagement service
service
service/workspaces
Microsoft.App containerapps
jobs
managedEnvironments
managedEnvironments
Microsoft.AppConfiguration configurationStores
configurationStores
Microsoft.AppPlatform spring
spring
Microsoft.Attestation N/A attestationProviders
Microsoft.Automation automationAccounts
automationAccounts
Microsoft.
AutonomousDevelopmentPlatform
N/A accounts
workspaces
microsoft.avs privateClouds
privateClouds
Microsoft.AzureDataTransfer N/A connections/flows
microsoft.
azureplaywrightservice
N/A accounts
microsoft.azuresphere catalogs
catalogs
Microsoft.Batch batchaccounts
batchaccounts
microsoft.botservice botservices
botservices
Microsoft.Cache redis
redisEnterprise
redis
redisEnterprise/databases
Microsoft.Cdn cdnwebapplicationfirewallpolicies
profiles
cdnwebapplicationfirewallpolicies
profiles
profiles/endpoints
Microsoft.Chaos N/A experiments
Microsoft.ClassicNetwork N/A networksecuritygroups
Microsoft.CodeSigning codesigningaccounts
codesigningaccounts
Microsoft.CognitiveServices accounts
accounts
Microsoft.Communication CommunicationServices
CommunicationServices
microsoft.community N/A communityTrainings
Microsoft.Compute cloudservices
cloudServices/roles
virtualMachines
virtualmachineScaleSets
virtualMachineScaleSets/virtualMachines
virtualMachines
Microsoft.ConfidentialLedger N/A ManagedCCF
ManagedCCFs
Microsoft.ConnectedCache CacheNodes
enterpriseMccCustomers
ispCustomers
CacheNodes
enterpriseMccCustomers
ispCustomers
Microsoft.ConnectedVehicle platformAccounts
platformAccounts
Microsoft.ContainerInstance containerGroups
containerScaleSets
containerGroups
Microsoft.ContainerRegistry registries
registries
Microsoft.ContainerService managedClusters
fleets
managedClusters
Microsoft.CustomProviders resourceproviders
resourceproviders
Microsoft.D365CustomerInsights N/A instances
Microsoft.Dashboard grafana
grafana
Microsoft.Databricks N/A workspaces
Microsoft.DataFactory datafactories
factories
factories
Microsoft.DataLakeAnalytics accounts
accounts
Microsoft.DataLakeStore accounts
accounts
Microsoft.DataProtection BackupVaults
BackupVaults
Microsoft.DataShare accounts
accounts
Microsoft.DBforMariaDB servers
servers
Microsoft.DBforMySQL flexibleServers
servers
flexibleServers
servers
Microsoft.DBforPostgreSQL flexibleServers
servers
serversv2
flexibleServers
servers
serversv2
Microsoft.DBForPostgreSQL serverGroupsv2
serverGroupsv2
Microsoft.
DesktopVirtualization
N/A appAttachPackages
applicationgroups
hostpools
scalingplans
workspaces
Microsoft.DevCenter devcenters
devcenters
Microsoft.Devices IotHubs
provisioningServices
IotHubs
provisioningServices
Microsoft.DevOpsInfrastructure pools
pools
Microsoft.DigitalTwins digitalTwinsInstances
digitalTwinsInstances
Microsoft.DocumentDB cassandraClusters
DatabaseAccounts
mongoClusters
cassandraClusters
DatabaseAccounts
mongoClusters
Microsoft.EventGrid domains
eventSubscriptions
extensionTopics
namespaces
partnerNamespaces
partnerTopics
systemTopics
topics
domains
namespaces
partnerNamespaces
partnerTopics
systemTopics
topics
Microsoft.EventHub clusters
Namespaces
Namespaces
Microsoft.
HardwareSecurityModules
N/A cloudHsmClusters
Microsoft.HealthcareApis services
workspaces/dicomservices
workspaces/fhirservices
workspaces/iotconnectors
services
workspaces/dicomservices
workspaces/fhirservices
workspaces/iotconnectors
Microsoft.HealthDataAIServices N/A deidServices
microsoft.insights autoscalesettings
components
autoscalesettings
components
Microsoft.Insights datacollectionrules
datacollectionrules
microsoft.keyvault managedhsms
managedhsms
Microsoft.KeyVault vaults
vaults
microsoft.kubernetes connectedClusters
connectedClusters
Microsoft.Kusto clusters
clusters
microsoft.loadtestservice N/A loadtests
Microsoft.Logic IntegrationServiceEnvironments
Workflows
IntegrationAccounts
Workflows
Microsoft.
MachineLearningServices
workspaces
workspaces/onlineEndpoints
workspaces/onlineEndpoints/deployments
registries
workspaces
workspaces/onlineEndpoints
Microsoft.ManagedNetworkFabric internetGateways
l3IsolationDomains
networkDevices
networkDevices
Microsoft.Media mediaservices
mediaservices/liveEvents
mediaservices/streamingEndpoints
videoanalyzers
mediaservices
mediaservices/liveEvents
mediaservices/streamingEndpoints
videoanalyzers
Microsoft.Monitor accounts
accounts
Microsoft.NetApp netAppAccounts/capacityPools
netAppAccounts/capacityPools/volumes
netAppAccounts/capacityPools
netAppAccounts/capacityPools/volumes
Microsoft.Network applicationgateways
azureFirewalls
connections
dnsForwardingRulesets
dnsResolverDomainLists
dnsResolverPolicies
dnsResolvers
dnszones
expressRouteCircuits
expressRouteCircuits/peerings
expressRoutePorts
frontdoors
loadBalancers
natgateways
networkinterfaces
networkManagers/ipamPools
networkWatchers/connectionMonitors
privateDnsZones
privateEndpoints
privateLinkServices
publicIPAddresses
publicIPPrefixes
trafficManagerProfiles
virtualHubs
virtualNetworks
virtualRouters
applicationgateways
azureFirewalls
dnsResolverPolicies
expressRouteCircuits
frontdoors
loadBalancers
networkManagers
networkManagers/ipamPools
networksecuritygroups
networkSecurityPerimeters
networkSecurityPerimeters/profiles
publicIPAddresses
publicIPPrefixes
trafficManagerProfiles
virtualNetworks
microsoft.network bastionHosts
expressroutegateways
p2svpngateways
virtualnetworkgateways
vpngateways
bastionHosts
p2svpngateways
virtualnetworkgateways
vpngateways
Microsoft.NetworkAnalytics N/A DataProducts
Microsoft.NetworkCloud bareMetalMachines
clusterManagers
clusters
storageAppliances
bareMetalMachines
clusterManagers
clusters
kubernetesClusters
storageAppliances
Microsoft.NetworkFunction azureTrafficCollectors
azureTrafficCollectors
Microsoft.NotificationHubs namespaces/notificationHubs
namespaces
namespaces/notificationHubs
MICROSOFT.OPENENERGYPLATFORM N/A ENERGYSERVICES
Microsoft.
OpenLogisticsPlatform
N/A Workspaces
Microsoft.OperationalInsights workspaces
workspaces
Microsoft.PlayFab titles
titles
Microsoft.PowerBI N/A tenants
tenants/workspaces
Microsoft.PowerBIDedicated capacities
capacities
Microsoft.ProviderHub N/A providerMonitorSettings
microsoft.purview accounts
accounts
Microsoft.RecoveryServices Vaults
Vaults
Microsoft.Relay namespaces
namespaces
Microsoft.Search searchServices
searchServices
Microsoft.Security N/A antiMalwareSettings
defenderForStorageSettings
microsoft.securityinsights N/A settings
Microsoft.ServiceBus Namespaces
Namespaces
Microsoft.ServiceNetworking trafficControllers
trafficControllers
Microsoft.SignalRService SignalR
SignalR/replicas
WebPubSub
WebPubSub/replicas
SignalR
SignalR/replicas
WebPubSub
WebPubSub/replicas
microsoft.singularity accounts
accounts
Microsoft.Sql managedInstances
servers/databases
servers/elasticpools
servers/jobAgents
managedInstances
managedInstances/databases
servers/databases
Microsoft.Storage storageAccounts
storageAccounts/blobServices
storageAccounts/fileServices
storageAccounts/objectReplicationPolicies
storageAccounts/queueServices
storageAccounts/storageTasks
storageAccounts/tableServices
storageTasks
storageAccounts/blobServices
storageAccounts/fileServices
storageAccounts/queueServices
storageAccounts/tableServices
Microsoft.StorageCache amlFilesystems
caches
amlFilesystems
caches
Microsoft.StorageMover storageMovers
storageMovers
Microsoft.StreamAnalytics streamingjobs
streamingjobs
Microsoft.Synapse workspaces
workspaces/bigDataPools
workspaces/kustoPools
workspaces/scopePools
workspaces/sqlPools
workspaces
workspaces/bigDataPools
workspaces/kustoPools
workspaces/scopePools
workspaces/sqlPools
Microsoft.
ToolchainOrchestrator
N/A diagnostics
microsoft.videoindexer N/A accounts
Microsoft.Web containerapps
hostingEnvironments
hostingenvironments/multirolepools
hostingenvironments/workerpools
serverfarms
sites
sites/slots
staticsites
hostingEnvironments
sites
sites/slots
staticsites
microsoft.workloads N/A sapvirtualinstances
NGINX.NGINXPLUS NGINX.NGINXPLUS/nginxDeployments
NGINX.NGINXPLUS/nginxDeployments
Microsoft.azurestackhci clusters
N/A
microsoft.bing accounts
N/A
Microsoft.BotService botServices/channels
botServices/connections
checknameavailability
hostsettings
listauthserviceproviders
listqnamakerendpointkeys
N/A
Microsoft.ClassicCompute domainNames/slots/roles
virtualMachines
N/A
Microsoft.ClassicStorage storageAccounts
storageAccounts/blobServices
storageAccounts/fileServices
storageAccounts/queueServices
storageAccounts/tableServices
N/A
Microsoft.ClusterStor nodes
N/A
microsoft.compute disks
N/A
Microsoft.DataBoxEdge dataBoxEdgeDevices
N/A
microsoft.edgezones edgezones
N/A
Microsoft.ElasticSan elasticSans
N/A
Microsoft.HDInsight clusters
N/A
Microsoft.HealthModel healthmodels
N/A
Microsoft.
HybridContainerService
provisionedClusters
N/A
microsoft.hybridnetwork networkfunctions
virtualnetworkfunctions
N/A
Microsoft.IoTCentral IoTApps
N/A
microsoft.
kubernetesconfiguration
extensions
N/A
Microsoft.Maps accounts
N/A
Microsoft.MessagingConnectors connectors
N/A
Microsoft.MixedReality remoteRenderingAccounts
spatialAnchorsAccounts
N/A
Microsoft.MobileNetwork mobilenetworks/sites
packetcorecontrolplanes
packetcorecontrolplanes/packetcoredataplanes
radioAccessNetworks
N/A
Microsoft.Orbital contactProfiles
l2Connections
spacecrafts
terminals
N/A
Microsoft.Peering peerings
peeringServices
N/A
microsoft.resources subscriptions
N/A
microsoft.securitydetonation chambers
N/A
Microsoft.SecurityDetonation SecurityDetonationChambers
N/A
Microsoft.StorageActions storageTasks
N/A
Microsoft.StorageSync storageSyncServices
N/A
Microsoft.StorageTasks storageTasks
N/A
Microsoft.VoiceServices CommunicationsGateways
N/A
Oracle.Database Oracle.Database/autonomousDatabases
Oracle.Database/cloudVmClusters
N/A
Private.MessagingConnectors Private.MessagingConnectors/connectors
N/A
Wandisco.Fusion Wandisco.Fusion/migrators
Wandisco.Fusion/migrators/dataTransferAgents
Wandisco.Fusion/migrators/liveDataMigrations
Wandisco.Fusion/migrators/metadataMigrations
N/A

Next steps