Microsoft Azure

Download 0
Last updated Oct 4, 2022

azure-metrics

Get metric values for specified Azure resource.

azure-metrics [profile=PROFILE] resource=RESOURCE [duration=NUM{mon|w|d|h|m|s}] [from=yyyyMMddHHmmss] [to=yyyyMMddHHmmss] span=SPAN [stat=STAT] [name=NAME]
profile=PROFILE
The identifier of Azure connect profile
resource=RESOURCE
Azure resource id. Use id value from azure-resources query result.
duration=NUM{mon|w|d|h|m|s}
Scan only recent data. You should use s(second), m(minute), h(hour), d(day), mon(month) time unit. For example, 10s means data from 10 seconds earlier.
from=yyyyMMddHHmmss
Start time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
to=yyyyMMddHHmmss
End time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
span=SPAN
Time span. You should use s(second), m(minute), h(hour), d(day), mon(month) time unit. For example, 10s means 10 seconds interval.
stat=STAT
Aggregation function. one of min, max, sum, avg, count. avg by default.
name=NAME
Metric name filter

Output Fields

FieldTypeNameDescription
profileStringConnect profileThe identifier of Azure connect profile
namespaceStringName SpaceName Space
nameStringNameName
_timeStringTimeTime
valueStringValueValue