Azure / Azure/azure-cli

az monitor metrics list should have a parameter for the unit

Open
#26,846 1 comment 0 reactions 1 assignee Claimed by @AllyW View on GitHub
act-observability-squad Auto-Assign Azure CLI Team customer-reported feature-request Monitor
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**
az monitor metrics list

**Is your feature request related to a problem? Please describe.**
I would like to define the results per a pre-specified unit, which today is not possible. Nowadays, for instance, I would like to know the memory usage in bytes, and the command only returns results in a percentage of memory usage. The same for hard disk.

**Describe the solution you'd like**
The solution is to add a parameter called --unit with possible values per metric. For instance, percentage or bytes.

**Describe alternatives you've considered**
An alternative solution is to add a field in the JSON results with the total amount of memory or hard disk in bytes, so I can calculate it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.