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 fromazure-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
Field | Type | Name | Description |
---|---|---|---|
profile | String | Connect profile | The identifier of Azure connect profile |
namespace | String | Name Space | Name Space |
name | String | Name | Name |
_time | String | Time | Time |
value | String | Value | Value |