histogram_combine

Description

Aggregate multiple histograms into a single histogram object.

This function can handle multiple types of histograms - tdigest, otelHistogram, otelExponentialHistogram. Appropriate aggregation method is chosen based on the type of the input. The function may automatically convert between histogram types to optimize performance.

Return type

histogram like

Domain

This is an aggregate function (aggregates rows over a group in aggregate verbs.)

Categories

Usage

histogram_combine(histogram)

Argument

Type

Optional

Repeatable

Restrictions

histogram

histogram like

no

no

none

Examples

align 5m, o: histogram_combine(m_histogram("latency"))

Aggregate OpenTelemetry histogram metric named “latency” into 5 minute time bins.

align 5m, o: histogram_combine(m_exponential_histogram("latency"))

Aggregate OpenTelemetry exponential histogram metric named “latency” into 5 minute time bins.

align 5m, o: histogram_combine(m_tdigest("latency"))

Aggregate tdigest metric named “latency” into 5 minute time bins.