转换到 Azure Monitor 中的指标

存储分析指标(也称为经典指标)将于 2024 年 1 月 9 日停用。 如果你使用了经典指标,本文将帮助你过渡到 Azure Monitor 中的指标。

完成转换的步骤

若要转换到 Azure Monitor 中的指标,建议采用以下方法。

  1. 了解经典指标和 Azure Monitor 中的指标之间的一些关键差别

  2. 编译当前使用的经典指标列表。

  3. 确定 Azure Monitor 中的哪些指标提供与当前使用指标相同的数据。

  4. 创建图标仪表板以查看指标数据。

    注意

    默认情况下,Azure Monitor 中的指标处于启用状态,因此无需执行任何操作来开始捕获指标。 但是,你必须创建图表或仪表板才能查看这些指标。

  5. 如果已创建基于经典存储指标的警报规则,则会根据 Azure Monitor 中的指标创建警报规则

  6. 在 Azure Monitor 中查看所有指标后,可以关闭经典日志记录。

经典指标与 Azure Monitor 中的指标

本部分介绍这两个指标平台之间的一些关键差别。

主要差别在于如何管理指标。 经典指标由 Azure 存储管理,而 Azure Monitor 中的指标由 Azure Monitor 管理。 使用经典指标,Azure 存储会收集并聚合指标值,然后将它们存储到位于存储帐户中的表中。 通过 Azure Monitor 中的指标,Azure 存储发送指标数据到 Azure Monitor 后端。 Azure Monitor 对通过 Azure 门户和引入的数据获取的数据提供统一的监视体验。

经典指标发送并存储在 Azure 存储帐户中。 Azure Monitor 指标可以发送到多个位置。 存储帐户可以是这些位置之一,但不是必需的。

至于指标支持,经典指标仅为 Azure Blob 存储提供容量指标。 Azure Monitor 中的指标提供 Blob、表、文件、队列和高级存储的容量指标。 经典指标提供 Blob、表、Azure 文件和队列存储上的事务指标。 Azure Monitor 中的指标向该列表添加高级存储。

如果帐户中的活动未触发指标,则经典指标将显示该指标的值为零 (0)。 Azure Monitor 中的指标将完全省略数据,让报告更简洁。 例如,对于经典指标,如果未报告服务器超时错误,则度量值表中的 ServerTimeoutError 值将设置为 0。 当你查询维度 ResponseType 等于 ServerTimeoutError 的指标 Transactions 的值时,Azure Monitor 不会返回任何数据。

若要详细了解 Azure Monitor 中的指标,请参阅 Azure Monitor 中的指标

将经典指标映射到 Azure Monitor 中的指标

使用这些表可以标识 Azure Monitor 中哪些指标提供与当前使用的指标相同的数据。

容量指标

经典指标 Azure Monitor 中的指标
Capacity 维度 BlobType 等于 BlockBlobPageBlobBlobCapacity
ObjectCount 维度 BlobType 等于 BlockBlobPageBlobBlobCount
ContainerCount ContainerCount

注意

还有一些新的容量指标不能作为经典指标提供。 若要查看完整列表,请参阅指标

事务指标

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

后续步骤