m¶
Description¶
Select a metric for the align verb.
Return type¶
fieldref
Domain¶
This is a scalar function (calculates a single output value for a single input row.)
Categories¶
Usage¶
m( name [ , filter ] )
Argument |
Type |
Required |
Multiple |
---|---|---|---|
name |
string |
Required |
Only one |
filter |
bool |
Optional |
Only one |
Examples¶
align 5m, request_rate: rate(m("requests_total"))
Calculate the per-second rate for the selected metric “requests_total”. The dataset must already implement the “metric” interface.
align 5m, request_rate: rate(m("requests_total", return_code >= 400 and return_code <= 599))
Calculate the per-second rate for the selected metric “requests_total” whose return_code is between 400 and 599. The dataset must already implement the “metric” interface.