An Azure service that stores unstructured data in the cloud as blobs.
@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.
- Learn about some of the key differences between classic metrics and metrics in Azure Monitor.
- Compile a list of classic metrics that you currently use.
- Identify which metrics in Azure Monitor provide the same data as the metrics you currently use.
- 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
- In the Azure portal, select Storage accounts, then the storage account name to open the account dashboard.
- Select Diagnostic settings (classic) in the Monitoring (classic) section of the menu blade.
- 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.