m_histogram¶
Description¶
Select an OpenTelemetry explicit bucket histogram metric for the align verb.
For other metrics, please use m(), m_tdigest(), or m_exponential_histogram() instead.
Return type¶
histogram
Domain¶
This is a scalar function (calculates a single output value for a single input row.)
Categories¶
Usage¶
m_histogram(metricName, [ filter ])
Argument |
Type |
Optional |
Repeatable |
Restrictions |
|---|---|---|---|---|
metricName |
string |
no |
no |
none |
filter |
bool |
yes |
no |
none |
Examples¶
align 5m, latency: histogram_combine(m_histogram("response_latency"))
An OpenTelemetry explicit bucket histogram metric response_latency is selected for align using m_histogram. It is then aggregated into 5min time bins using histogram_combine.