Storage metrics - az storage metrics

Manage Storage service metrics.

Commands

az storage metrics show Show metrics settings for a storage account.
az storage metrics update Update metrics settings for a storage account.

az storage metrics show

Show metrics settings for a storage account.

az storage metrics show [--account-key]
[--account-name]
[--connection-string]
[--interval {both, hour, minute}]
[--sas-token]
[--services]
[--timeout]

Optional Parameters

--account-key

Storage account key. Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_KEY.

--account-name

Storage account name. Must be used in conjunction with either storage account key or a SAS token. Environment variable: AZURE_STORAGE_ACCOUNT.

--connection-string

Storage account connection string. Environment variable: AZURE_STORAGE_CONNECTION_STRING.

--interval

Filter the set of metrics to retrieve by time interval.

accepted values: both, hour, minute
default value: both
--sas-token

A Shared Access Signature (SAS). Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_SAS_TOKEN.

--services

The storage services from which to retrieve metrics info: (b)lob (f)ile (q)ueue (t)able. Can be combined.

default value: bfqt
--timeout

Request timeout in seconds. Applies to each call to the service.

az storage metrics update

Update metrics settings for a storage account.

az storage metrics update --retention
--services
[--account-key]
[--account-name]
[--api {false, true}]
[--connection-string]
[--hour {false, true}]
[--minute {false, true}]
[--sas-token]
[--timeout]

Required Parameters

--retention

Number of days for which to retain metrics. 0 to disable. Applies to both hour and minute metrics if both are specified.

--services

The storage service(s) for which to update metrics info: (b)lob (f)ile (q)ueue (t)able. Can be combined.

Optional Parameters

--account-key

Storage account key. Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_KEY.

--account-name

Storage account name. Must be used in conjunction with either storage account key or a SAS token. Environment variable: AZURE_STORAGE_ACCOUNT.

--api

Specify whether to include API in metrics. Applies to both hour and minute metrics if both are specified. Must be specified if hour or minute metrics are enabled and being updated.

accepted values: false, true
--connection-string

Storage account connection string. Environment variable: AZURE_STORAGE_CONNECTION_STRING.

--hour

Update the hourly metrics.

accepted values: false, true
--minute

Update the by-minute metrics.

accepted values: false, true
--sas-token

A Shared Access Signature (SAS). Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_SAS_TOKEN.

--timeout

Request timeout in seconds. Applies to each call to the service.