轉換為 Azure 監視器中的計量

儲存體分析計量 (也稱為傳統計量) 已於 2024 年 1 月 9 日淘汰。 如果您是使用傳統計量,本文可協助您轉換至 Azure 監視器中的計量。

完成轉換的步驟

若要轉換為 Azure 監視器中的計量,我們建議採用下列方法。

  1. 了解傳統計量和 Azure 監視器中計量之間的一些主要差異

  2. 編譯您目前使用的傳統計量清單。

  3. 識別 Azure 監視器中哪些計量提供的資料與您目前使用的計量相同。

  4. 建立圖表儀表板來檢視計量資料。

    注意

    Azure 監視器中的計量會預設為啟用,因此您不需要執行任何動作來開始擷取計量。 不過,您必須建立圖表或儀表板來檢視這些計量。

  5. 如果您已建立以傳統儲存體計量為基礎的警示規則,則請根據 Azure 監視器中的計量建立警示規則

  6. 當您可以在 Azure 監視器中看到所有計量之後,您就可以關閉傳統記錄。

傳統計量與 Azure 監視器中的計量

本節將說明這兩個計量平台之間的一些主要差異。

主要差異在於計量的管理方式。 傳統計量是由 Azure 儲存體管理,而 Azure 監視器中的計量是由 Azure 監視器管理。 使用傳統計量時,Azure 儲存體會收集計量值、將其彙總,然後儲存在位於儲存體帳戶中的資料表。 使用 Azure 監視器中的計量時,Azure 儲存體會將計量資料傳送到 Azure 監視器後端。 Azure 監視器提供統一的監視體驗,其中包括來自 Azure 入口網站的資料及擷取的資料。

傳統計量會傳送並儲存至 Azure 儲存體帳戶中。 Azure 監視器計量可以傳送到多個位置。 儲存體帳戶可以是這些位置的其中一個,但不是必要。

至於計量支援,傳統計量只會提供 Azure Blob 儲存體的容量計量。 Azure 監視器中的計量提供 Blob、資料表、檔案、佇列和進階儲存體的容量計量。 傳統計量提供 Blob、資料表、Azure 檔案和佇列儲存體的交易計量。 Azure 監視器中的計量會將進階儲存體新增至該清單。

如果您帳戶中的活動不會觸發計量,則傳統計量會顯示該計量的值為零 (0)。 Azure 監視器中的計量會完全略過該資料,進而產生更乾淨的報表。 例如,使用傳統計量時,如果未報告任何伺服器逾時錯誤,則計量資料表中的 ServerTimeoutError 值會設定為 0。 當您在 ResponseType 維度等於 ServerTimeoutError 的情況下查詢 Transactions 計量的值時,Azure 監視器不會傳回任何資料。

若要深入了解 Azure 監視器中的計量,請參閱 Azure 監視器中的計量

將傳統計量對應至 Azure 監視器中的計量

使用這些資料表,識別 Azure 監視器中哪些計量提供的資料與您目前使用的計量相同。

容量計量

傳統計量 Azure 監視器中的計量
Capacity BlobCapacityBlobType 維度等於 BlockBlobPageBlob
ObjectCount BlobCountBlobType 維度等於 BlockBlobPageBlob
ContainerCount ContainerCount

注意

另外還有幾個新的容量計量無法作為傳統計量使用。 若要檢視完整清單,請參閱計量

交易計量

傳統計量 Azure 監視器中的計量
AnonymousAuthorizationError ResponseType 維度等於 AuthorizationErrorAuthentication 維度等於 Anonymous 的交易
AnonymousClientOtherError ResponseType 維度等於 ClientOtherErrorAuthentication 維度等於 Anonymous 的交易
AnonymousClientTimeoutError ResponseType 維度等於 ClientTimeoutErrorAuthentication 維度等於 Anonymous 的交易
AnonymousNetworkError ResponseType 維度等於 NetworkErrorAuthentication 維度等於 Anonymous 的交易
AnonymousServerOtherError ResponseType 維度等於 ServerOtherErrorAuthentication 維度等於 Anonymous 的交易
AnonymousServerTimeoutError ResponseType 維度等於 ServerTimeoutErrorAuthentication 維度等於 Anonymous 的交易
AnonymousSuccess ResponseType 維度等於 SuccessAuthentication 維度等於 Anonymous 的交易
AnonymousThrottlingError ResponseType 維度等於 ClientThrottlingErrorServerBusyErrorAuthentication 維度等於 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 維度等於 ServerTimeoutErrorResponseType 等於 ClientTimeoutError 的交易
SASAuthorizationError ResponseType 維度等於 AuthorizationErrorAuthentication 維度等於 SAS 的交易
SASClientOtherError ResponseType 維度等於 ClientOtherErrorAuthentication 維度等於 SAS 的交易
SASClientTimeoutError ResponseType 維度等於 ClientTimeoutErrorAuthentication 維度等於 SAS 的交易
SASNetworkError ResponseType 維度等於 NetworkErrorAuthentication 維度等於 SAS 的交易
SASServerOtherError ResponseType 維度等於 ServerOtherErrorAuthentication 維度等於 SAS 的交易
SASServerTimeoutError ResponseType 維度等於 ServerTimeoutErrorAuthentication 維度等於 SAS 的交易
SASSuccess ResponseType 維度等於 SuccessAuthentication 維度等於 SAS 的交易
SASThrottlingError ResponseType 維度等於 ClientThrottlingErrorServerBusyErrorAuthentication 維度等於 SAS 的交易
ServerOtherError ResponseType 維度等於 ServerOtherError 的交易
ServerTimeoutError ResponseType 維度等於 ServerTimeoutError 的交易
Success ResponseType 維度等於 Success 的交易
ThrottlingError TransactionsResponseType 維度等於 ClientThrottlingErrorServerBusyError
TotalBillableRequests Transactions
TotalEgress Egress
TotalIngress Ingress
TotalRequests Transactions

下一步