otel_histogram_sum

otel_histogram_sum(histogram: object) -> object

Window or aggregate-time merge of OpenTelemetry classic histogram objects: it sums bucket counts and related fields across grouped rows, returning a single combined object histogram per group. The input must be the object encoding of a classic histogram. This is an aggregate (isAggregate); use it inside align or window with a frame so grouped rows define what gets merged. The exponential variant is otel_exponential_histogram_sum; combining typed histogram columns without going through raw objects uses histogram_combine.

Domain

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

Categories

Examples

align 1m, frame(back: 1m), o: otel_histogram_sum(histogram_object)

Aggregates raw classic histogram objects in each one-minute window into a single merged histogram structure.