Skip to content

Azure CLI Monitor Metrics #26167

Description

@Phoenax

Hi!

I'm playing around with the Azure CLI monitor command, to try and retrieve some values from certain metrics.

In this, case, I want the "NormalizedRUConsumption" from a CosmosDB container/collection, within a certain timeframe.
My issue here is:

  • If I don't specifiy "--end-date", it doesn't default to "Now" as the end of the timeframe. Trying to get 1 month of values, in 1H interval. Is there any restrain like a maximum set size?

  • Got the values in a 1 day time frame, and they "kinda" correspond to what I see in the Azure Portal dashboard Metrics blade, but the
    "timeStamp" doesn't quite correspond to the observed. There's a somewhat 1 hour difference between them.

I'm new to all these commands, and it's too much information that needs be known, I may be lacking some information as to how all this work/connects.

Thank you for your time!

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

Azure CLI TeamThe command of the issue is owned by Azure CLI teamMonitoraz monitoract-observability-squadquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions