转换到 Azure Monitor 中的指标Transition to metrics in Azure Monitor

Azure 存储现在将指标集成到 Azure Monitor 平台。Azure Storage now integrates metrics into the Azure Monitor platform. 本文可帮助你进行转换。This article helps you make the transition.

完成转换的步骤Steps to complete the transition

若要转换到 Azure Monitor 中的指标,建议采用以下方法。To transition to metrics in Azure Monitor, we recommend the following approach.

  1. 了解经典指标和 Azure Monitor 中的指标之间的一些关键差别Learn about some of the key differences between classic metrics and metrics in Azure Monitor.

  2. 编译当前使用的经典指标列表。Compile a list of classic metrics that you currently use.

  3. 确定 Azure Monitor 中的哪些指标提供与当前使用指标相同的数据。Identify which metrics in Azure Monitor provide the same data as the metrics you currently use.

  4. 创建图标仪表板以查看指标数据。Create charts or dashboards to view metric data.

    备注

    默认情况下,Azure Monitor 中的指标处于启用状态,因此无需执行任何操作来开始捕获指标。Metrics in Azure Monitor are enabled by default, so there is nothing you need to do to begin capturing metrics. 但是,你必须创建图表或仪表板才能查看这些指标。You must however, create charts or dashboards to view those metrics.

  5. 如果已创建基于经典存储指标的警报规则,则会根据 Azure Monitor 中的指标创建警报规则If you've created alert rules that are based on classic storage metrics, then create alert rules that are based on metrics in Azure Monitor.

  6. 在 Azure Monitor 中查看所有指标后,可以关闭经典日志记录。After you're able to see all of your metrics in Azure Monitor, you can turn off classic logging.

经典指标与 Azure Monitor 中的指标Classic metrics vs. metrics in Azure Monitor

本部分介绍这两个指标平台之间的一些关键差别。This section describes a few key differences between these two metrics platforms.

主要差别在于如何管理指标。The main difference is in how metrics are managed. 经典指标由 Azure 存储管理,而 Azure Monitor 中的指标由 Azure Monitor 管理。Classic metrics are managed by Azure Storage whereas metrics in Azure Monitor are managed by Azure Monitor. 使用经典指标,Azure 存储会收集并聚合指标值,然后将它们存储到位于存储帐户中的表中。With classic metrics, Azure Storage collects metric values, aggregates them, and then stores them in tables that are located in the storage account. 通过 Azure Monitor 中的指标,Azure 存储发送指标数据到 Azure Monitor 后端。With metrics in Azure Monitor, Azure Storage sends metric data to the Azure Monitor back end. Azure Monitor 对通过 Azure 门户和引入的数据获取的数据提供统一的监视体验。Azure Monitor provides a unified monitoring experience that includes data from the Azure portal as well as data that is ingested.

至于指标支持,经典指标仅为 Azure Blob 存储提供容量指标。As far as metrics support, classic metrics provide capacity metrics only for Azure Blob storage. Azure Monitor 中的指标提供 Blob、表、文件、队列和高级存储的容量指标。Metrics in Azure Monitor provide capacity metrics for Blob, Table, File, Queue, and premium storage. 经典指标提供 Blob、表、Azure 文件和队列存储上的事务指标。Classic metrics provide transaction metrics on Blob, Table, Azure File, and Queue storage. Azure Monitor 中的指标向该列表添加高级存储。Metrics in Azure Monitor add premium storage to that list.

如果帐户中的活动未触发指标,则经典指标将显示该指标的值为零 (0)。If the activity in your account does not trigger a metric, classic metrics will show a value of zero (0) for that metric. Azure Monitor 中的指标将完全省略数据,让报告更简洁。Metrics in Azure Monitor will omit the data entirely, which leads to cleaner reports. 例如,对于经典指标,如果未报告服务器超时错误,则度量值表中的 ServerTimeoutError 值将设置为 0。For example, with classic metrics, if no server timeout errors are reported, then the ServerTimeoutError value in the metrics table is set to 0. 当你查询维度 ResponseType 等于 ServerTimeoutError 的指标 Transactions 的值时,Azure Monitor 不会返回任何数据。Azure Monitor doesn't return any data when you query the value of metric Transactions with dimension ResponseType equal to ServerTimeoutError.

若要详细了解 Azure Monitor 中的指标,请参阅 Azure Monitor 中的指标To learn more about metrics in Azure Monitor, see Metrics in Azure Monitor.

将经典指标映射到 Azure Monitor 中的指标Map classic metrics to metrics in Azure Monitor

使用这些表可以标识 Azure Monitor 中哪些指标提供与当前使用的指标相同的数据。Use these tables to identify which metrics in Azure Monitor provide the same data as the metrics you currently use.

容量指标Capacity metrics

经典指标Classic metric Azure Monitor 中的指标Metric in Azure Monitor
Capacity 维度 BlobType 等于 BlockBlobPageBlobBlobCapacityBlobCapacity with the dimension BlobType equal to BlockBlob or PageBlob
ObjectCount 维度 BlobType 等于 BlockBlobPageBlobBlobCountBlobCount with the dimension BlobType equal to BlockBlob or PageBlob
ContainerCount ContainerCount

备注

还有一些新的容量指标不能作为经典指标提供。There are also several new capacity metrics that weren't available as classic metrics. 若要查看完整列表,请参阅指标To view the complete list, see Metrics.

事务指标Transaction metrics

经典指标Classic metric Azure Monitor 中的指标Metric in Azure Monitor
AnonymousAuthorizationError 维度 ResponseType 等于 AuthorizationError 且维度 Authentication 等于 Anonymous 的事务Transactions with the dimension ResponseType equal to AuthorizationError and dimension Authentication equal to Anonymous
AnonymousClientOtherError 维度 ResponseType 等于 ClientOtherError 且维度 Authentication 等于 Anonymous 的事务Transactions with the dimension ResponseType equal to ClientOtherError and dimension Authentication equal to Anonymous
AnonymousClientTimeoutError 维度 ResponseType 等于 ClientTimeoutError 且维度 Authentication 等于 Anonymous 的事务Transactions with the dimension ResponseType equal to ClientTimeoutError and dimension Authentication equal to Anonymous
AnonymousNetworkError 维度 ResponseType 等于 NetworkError 且维度 Authentication 等于 Anonymous 的事务Transactions with the dimension ResponseType equal to NetworkError and dimension Authentication equal to Anonymous
AnonymousServerOtherError 维度 ResponseType 等于 ServerOtherError 且维度 Authentication 等于 Anonymous 的事务Transactions with the dimension ResponseType equal to ServerOtherError and dimension Authentication equal to Anonymous
AnonymousServerTimeoutError 维度 ResponseType 等于 ServerTimeoutError 且维度 Authentication 等于 Anonymous 的事务Transactions with the dimension ResponseType equal to ServerTimeoutError and dimension Authentication equal to Anonymous
AnonymousSuccess 维度 ResponseType 等于 Success 且维度 Authentication 等于 Anonymous 的事务Transactions with the dimension ResponseType equal to Success and dimension Authentication equal to Anonymous
AnonymousThrottlingError 维度 ResponseType 等于 ClientThrottlingErrorServerBusyError 且维度 Authentication 等于 Anonymous 的事务Transactions with the dimension ResponseType equal to ClientThrottlingError or ServerBusyError and dimension Authentication equal to Anonymous
AuthorizationError 维度 ResponseType 等于 AuthorizationError 的事务Transactions with the dimension ResponseType equal to AuthorizationError
Availability Availability
AverageE2ELatency SuccessE2ELatency
AverageServerLatency SuccessServerLatency
ClientOtherError 维度 ResponseType 等于 ClientOtherError 的事务Transactions with the dimension ResponseType equal to ClientOtherError
ClientTimeoutError 维度 ResponseType 等于 ClientTimeoutError 的事务Transactions with the dimension ResponseType equal to ClientTimeoutError
NetworkError 维度 ResponseType 等于 NetworkError 的事务Transactions with the dimension ResponseType equal to NetworkError
PercentAuthorizationError 维度 ResponseType 等于 AuthorizationError 的事务Transactions with the dimension ResponseType equal to AuthorizationError
PercentClientOtherError 维度 ResponseType 等于 ClientOtherError 的事务Transactions with the dimension ResponseType equal to ClientOtherError
PercentNetworkError 维度 ResponseType 等于 NetworkError 的事务Transactions with the dimension ResponseType equal to NetworkError
PercentServerOtherError 维度 ResponseType 等于 ServerOtherError 的事务Transactions with the dimension ResponseType equal to ServerOtherError
PercentSuccess 维度 ResponseType 等于 Success 的事务Transactions with the dimension ResponseType equal to Success
PercentThrottlingError 维度 ResponseType 等于 ClientThrottlingErrorServerBusyError 的事务Transactions with the dimension ResponseType equal to ClientThrottlingError or ServerBusyError
PercentTimeoutError 维度 ResponseType 等于 ServerTimeoutError 或维度 ResponseType 等于 ClientTimeoutError 的事务Transactions with the dimension ResponseType equal to ServerTimeoutError or ResponseType equal to ClientTimeoutError
SASAuthorizationError 维度 ResponseType 等于 AuthorizationError 且维度 Authentication 等于 SAS 的事务Transactions with the dimension ResponseType equal to AuthorizationError and dimension Authentication equal to SAS
SASClientOtherError 维度 ResponseType 等于 ClientOtherError 且维度 Authentication 等于 SAS 的事务Transactions with the dimension ResponseType equal to ClientOtherError and dimension Authentication equal to SAS
SASClientTimeoutError 维度 ResponseType 等于 ClientTimeoutError 且维度 Authentication 等于 SAS 的事务Transactions with the dimension ResponseType equal to ClientTimeoutError and dimension Authentication equal to SAS
SASNetworkError 维度 ResponseType 等于 NetworkError 且维度 Authentication 等于 SAS 的事务Transactions with the dimension ResponseType equal to NetworkError and dimension Authentication equal to SAS
SASServerOtherError 维度 ResponseType 等于 ServerOtherError 且维度 Authentication 等于 SAS 的事务Transactions with the dimension ResponseType equal to ServerOtherError and dimension Authentication equal to SAS
SASServerTimeoutError 维度 ResponseType 等于 ServerTimeoutError 且维度 Authentication 等于 SAS 的事务Transactions with the dimension ResponseType equal to ServerTimeoutError and dimension Authentication equal to SAS
SASSuccess 维度 ResponseType 等于 Success 且维度 Authentication 等于 SAS 的事务Transactions with the dimension ResponseType equal to Success and dimension Authentication equal to SAS
SASThrottlingError 维度 ResponseType 等于 ClientThrottlingErrorServerBusyError 且维度 Authentication 等于 SAS 的事务Transactions with the dimension ResponseType equal to ClientThrottlingError or ServerBusyError and dimension Authentication equal to SAS
ServerOtherError 维度 ResponseType 等于 ServerOtherError 的事务Transactions with the dimension ResponseType equal to ServerOtherError
ServerTimeoutError 维度 ResponseType 等于 ServerTimeoutError 的事务Transactions with the dimension ResponseType equal to ServerTimeoutError
Success 维度 ResponseType 等于 Success 的事务Transactions with the dimension ResponseType equal to Success
ThrottlingError 维度 ResponseType 等于 ClientThrottlingErrorServerBusyErrorTransactionsTransactions with the dimension ResponseType equal to ClientThrottlingError or ServerBusyError
TotalBillableRequests Transactions
TotalEgress Egress
TotalIngress Ingress
TotalRequests Transactions

后续步骤Next steps