Share via

Transition to metrics in Azure Monitor before classic metrics in Azure Storage are retired on 9 January 2024

Ghania Moussa 20 Reputation points Microsoft Employee
2023-12-27T20:12:24.77+00:00

We got an email regarding our subscription for using classic metrics and transitioning to use metrics in monitor. We don't have metrics emitted to the classic one in our code for the storage used, can you please confirm if there is any or how to detect if there is any?

Azure Blob Storage
Azure Blob Storage

An Azure service that stores unstructured data in the cloud as blobs.

0 comments No comments

Answer accepted by question author

  1. Sumarigo-MSFT 47,511 Reputation points Microsoft Employee Moderator
    2023-12-28T03:46:24.0066667+00:00

    @Ghania Moussa Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    Yes, you can check if your code is emitting metrics to the classic Storage Analytics metrics by checking if the Microsoft.WindowsAzure.Storage.Analytics package is being used in your code.

    If you are not using this package, then it is likely that your code is not emitting metrics to the classic Storage Analytics metrics.

    However, to be sure, you can also check if the Microsoft.WindowsAzure.Diagnostics package is being used in your code. This package is used to configure diagnostics for Azure Cloud Services and Virtual Machines, and it includes support for the classic Storage Analytics metrics.

    If you are not using either of these packages, then it is very unlikely that your code is emitting metrics to the classic Storage Analytics metrics.

    This article will provided detailed information on "Transition to metrics in Azure Monitor before classic metrics in Azure Storage are retired on 9 January 2024"

    To transition to metrics in Azure Monitor, we recommend the following approach.

    1. 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. 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.

    This step number "Compile a list of classic metrics that you currently use." is refering to create a list of classic metrics because it will be completely retired as you see on the e-mail.

    You can get a list of your classic metrics by portal or CLI (https://learn.microsoft.com/en-us/azure/storage/common/storage-analytics-metrics):

    From the Azure Portal

    1. In the Azure portal, select Storage accounts, then the storage account name to open the account dashboard.
    2. Select Diagnostic settings (classic) in the Monitoring (classic) section of the menu blade.
    3. Select the type of metrics data for each service you are monitoring,

    From the Azure CLI You can use the following command to show metrics settings for a storage account:

    az storage metrics show --account-key <your_account_key> --account-name <your_account_name>
    

    Please let us know if you have any further queries. I’m happy to assist you further.


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.