m_object¶
Description¶
Select a metric with an object typed value for the align verb.
OpenTelemetry histograms and exponential histograms are examples of metrics whose values are object typed. These metrics can be selected using m_object. For other metrics, please use m() or m_tdigest(), instead.
Return type¶
object
Domain¶
This is a scalar function (calculates a single output value for a single input row.)
Categories¶
Usage¶
m_object(metricName, [ filter ])
Argument |
Type |
Optional |
Repeatable |
Restrictions |
|---|---|---|---|---|
metricName |
string |
no |
no |
none |
filter |
bool |
yes |
no |
none |
Examples¶
align 5m, latency: otel_histogram_sum(m_object("response_latency"))
An OpenTelemetry histogram metric response_latency is selected for align using m_object. It is then aggregated into 5min time bins using otel_histogram_sum.