m_object(metricName: string, [filter: bool]?) -> object

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.

Domain

This is a scalar function (calculates a single output value for a single input row).

Categories

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.