Azure / Azure/azure-cli

Azure CLI Monitor Metrics

Offen
#26,167 5 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @AllyW Auf GitHub ansehen
act-observability-squad Azure CLI Team Monitor question
Vorherrschende Sprache
Python
Sterne
4.6k
Forks
3.5k
Ø Merge
3 T. 18 Std.
Gemergte PRs (30 T.)
62

Beschreibung

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.*

* ID: 811a2d68-f0d9-5c71-b370-60995b271bc4
* Version Independent ID: 965ae9c0-9c39-8a44-9083-11f542d04099
* Content: [az monitor](https://learn.microsoft.com/en-us/cli/azure/monitor?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/monitor.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/monitor.yml)
* Service: **monitoring-and-diagnostics**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.