你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Azure 监视器支持的指标

本文是 Azure Monitor 中当前可用的平台或自动收集的指标列表。 要以编程方式查询和访问指标列表,请使用 2018-01-01 API 版本。 未在此列表列出的其他指标可能会在门户或旧版 API 中列出。

指标按资源提供程序和资源类型进行了组织。 有关服务和属于它们的资源提供程序和类型的列表,请参阅 Azure 服务的资源提供程序

将平台指标导出到其他位置

可以使用以下方法从 Azure Monitor 导出平台指标:

通过 DCR 导出的指标和诊断设置将指标导出到以下位置:

  • Azure 存储帐户。
  • Log Analytics 工作区。
  • 事件中心允许你进一步导出到非Microsoft系统。

使用诊断设置是路由指标的最简单方法,但存在一些限制:

  • 可导出性。 所有指标都可以通过 REST API 导出,但某些指标由于 Azure Monitor 后端中的复杂情况而无法通过诊断设置导出。 下表中的“可通过诊断设置导出”列列出了可以用这种方式导出的指标。

  • 多维指标。 通过数据收集规则(DCR)导出指标支持将多维指标发送到其他位置。 不支持通过诊断设置导出多个维度。 维度的指标由诊断设置导出为平展的单维指标,跨维度值聚合。 例如:可以基于每个队列级别浏览和绘制事件中心上的“传入消息”指标。 但是,当指标通过诊断设置导出时,它表示为事件中心内所有队列中的所有传入消息。

来宾 OS 和主机 OS 指标

此处未列出在 Azure 虚拟机、Service Fabric 和云服务中运行的来宾操作系统(来宾 OS)的指标。 来宾 OS 指标必须通过一个或多个代理进行收集,这些代理在来宾操作系统上运行或作为来宾操作系统一部分运行。 来宾 OS 指标包括性能计数器,该性能计数器跟踪来宾 CPU 百分比或内存使用率,这两者经常用于自动缩放或警报功能。

主机 OS 指标可供使用,已在表中列出。 主机 OS 指标与托管来宾 OS 会话的 Hyper-V 会话相关。

提示

最佳做法是使用并配置 Azure Monitor 代理,将来宾 OS 性能指标发送到存储平台指标的 Azure Monitor 指标数据库中。 该代理通过自定义指标 API 来路由来宾 OS 指标。 然后,你可以像使用平台指标那样,绘制图表、发送警报以及以其他方式使用来宾 OS 指标。

另外,还可以使用相同的代理将来宾 OS 指标发送到 Azure Monitor 日志。 在那里,你可以使用 Log Analytics 查询这些指标以及非指标数据。 然后,将应用标准 Log Analytics 工作区成本

Azure Monitor 代理取代了以前用于来宾 OS 路由的 Azure 诊断 扩展和 Logs Analytics 代理。 有关其他重要信息,请参阅 Azure Monitor 代理概述

支持的指标和日志类别(按资源类型)

下表列出了每种资源类型适用的指标和日志类别。

资源提供程序 指标 日志类别
Microsoft.AAD DomainServices
DomainServices
Microsoft.AgFoodPlatform 空值 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 空值 attestationProviders
Microsoft.Automation automationAccounts
automationAccounts
Microsoft。
AutonomousDevelopmentPlatform
空值 accounts
workspaces
microsoft.avs privateClouds
privateClouds
Microsoft.AzureDataTransfer 空值 connections/flows
microsoft.
azureplaywrightservice
空值 accounts
microsoft.azuresphere catalogs
catalogs
Microsoft.Batch batchaccounts
batchaccounts
microsoft.botservice botservices
botservices
Microsoft.Cache redis
redisEnterprise
redis
redisEnterprise/databases
Microsoft.Cdn cdnwebapplicationfirewallpolicies
配置文件
cdnwebapplicationfirewallpolicies
配置文件
profiles/endpoints
Microsoft.Chaos 空值 experiments
Microsoft.ClassicNetwork 空值 networksecuritygroups
Microsoft.CodeSigning codesigningaccounts
codesigningaccounts
Microsoft.CognitiveServices accounts
accounts
Microsoft.Communication CommunicationServices
CommunicationServices
microsoft.community 空值 communityTrainings
Microsoft.Compute cloudservices
cloudServices/roles
virtualMachines
virtualmachineScaleSets
virtualMachineScaleSets/virtualMachines
virtualMachines
Microsoft.ConfidentialLedger 空值 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 空值 instances
Microsoft.Dashboard grafana
grafana
Microsoft.Databricks 空值 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
空值 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
garnetClusters
mongoClusters
cassandraClusters
DatabaseAccounts
mongoClusters
Microsoft.EventGrid domains
eventSubscriptions
extensionTopics
namespaces
partnerNamespaces
partnerTopics
systemTopics
topics
domains
namespaces
partnerNamespaces
partnerTopics
systemTopics
topics
Microsoft.EventHub clusters
命名空间
命名空间
Microsoft。
HardwareSecurityModules
空值 cloudHsmClusters
Microsoft.HealthcareApis services
workspaces/dicomservices
workspaces/fhirservices
workspaces/iotconnectors
services
workspaces/dicomservices
workspaces/fhirservices
workspaces/iotconnectors
Microsoft.HealthDataAIServices 空值 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 空值 loadtests
Microsoft.Logic IntegrationServiceEnvironments
工作流
IntegrationAccounts
工作流
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
Microsoft.Network applicationgateways
azureFirewalls
连接
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 空值 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 空值 ENERGYSERVICES
Microsoft。
OpenLogisticsPlatform
空值 工作区
Microsoft.OperationalInsights workspaces
workspaces
Microsoft.PlayFab titles
titles
Microsoft.PowerBI 空值 tenants
tenants/workspaces
Microsoft.PowerBIDedicated capacities
capacities
Microsoft.ProviderHub 空值 providerMonitorSettings
microsoft.purview accounts
accounts
Microsoft.RecoveryServices 保管库
保管库
Microsoft.Relay namespaces
namespaces
Microsoft.Search searchServices
searchServices
Microsoft.Security 空值 antiMalwareSettings
defenderForStorageSettings
microsoft.securityinsights 空值 设置
Microsoft.ServiceBus 命名空间
命名空间
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.StandbyPool 空值 standbycontainergrouppools
standbyvirtualmachinepools
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
空值 diagnostics
microsoft.videoindexer 空值 accounts
Microsoft.Web containerapps
hostingEnvironments
hostingenvironments/multirolepools
hostingenvironments/workerpools
serverfarms
sites
sites/slots
staticsites
hostingEnvironments
sites
sites/slots
staticsites
microsoft.workloads 空值 sapvirtualinstances
NGINX.NGINXPLUS NGINX.NGINXPLUS/nginxDeployments
NGINX.NGINXPLUS/nginxDeployments
Microsoft.azurestackhci clusters
空值
microsoft.bing accounts
空值
Microsoft.BotService botServices/channels
botServices/connections
checknameavailability
hostsettings
listauthserviceproviders
listqnamakerendpointkeys
空值
Microsoft.ClassicCompute domainNames/slots/roles
virtualMachines
空值
Microsoft.ClassicStorage storageAccounts
storageAccounts/blobServices
storageAccounts/fileServices
storageAccounts/queueServices
storageAccounts/tableServices
空值
Microsoft.ClusterStor 节点
空值
microsoft.compute disks
空值
Microsoft.DataBoxEdge dataBoxEdgeDevices
空值
microsoft.edgezones edgezones
空值
Microsoft.ElasticSan elasticSans
空值
Microsoft.HDInsight clusters
空值
Microsoft.HealthModel healthmodels
空值
Microsoft。
HybridContainerService
provisionedClusters
空值
microsoft.hybridnetwork networkfunctions
virtualnetworkfunctions
空值
Microsoft.IoTCentral IoTApps
空值
microsoft.
kubernetesconfiguration
extensions
空值
Microsoft.Maps accounts
空值
Microsoft.MessagingConnectors connectors
空值
Microsoft.MixedReality remoteRenderingAccounts
spatialAnchorsAccounts
空值
Microsoft.MobileNetwork mobilenetworks/sites
packetcorecontrolplanes
packetcorecontrolplanes/packetcoredataplanes
radioAccessNetworks
空值
Microsoft.Orbital contactProfiles
l2Connections
spacecrafts
terminals
空值
Microsoft.Peering peerings
peeringServices
空值
microsoft.resources subscriptions
空值
microsoft.securitydetonation chambers
空值
Microsoft.SecurityDetonation SecurityDetonationChambers
空值
Microsoft.StorageActions storageTasks
空值
Microsoft.StorageSync storageSyncServices
空值
Microsoft.StorageTasks storageTasks
空值
Microsoft.VoiceServices CommunicationsGateways
空值
Oracle.Database Oracle.Database/autonomousDatabases
Oracle.Database/cloudVmClusters
空值
Private.MessagingConnectors Private.MessagingConnectors/connectors
空值
Wandisco.Fusion Wandisco.Fusion/migrators
Wandisco.Fusion/migrators/dataTransferAgents
Wandisco.Fusion/migrators/liveDataMigrations
Wandisco.Fusion/migrators/metadataMigrations
空值

后续步骤