CmdID / az / az monitor / az monitor metrics
az monitor metrics list
List the metric values for a resource. Azure CLI reference
11 options Its page in the Azure CLI reference
Options
--aggregationThe list of aggregation types (space-separated) to retrieve.--dimensionThe list of dimensions (space-separated) the metrics are queried into.--filterA string used to reduce the set of metric data returned.--intervalThe interval over which to aggregate metrics, in ##h##m format.--metadataReturns the metadata values instead of metric data--metricsSpace-separated list of metric names to retrieve.--namespaceNamespace to query metric definitions for.--offsetTime offset of the query range, in ##d##h format.--orderbyAggregation to use for sorting results and the direction of the sort.--start-time, --end-time--topMax number of records to retrieve.