aggregate

Type of operation: Aggregate, Metrics

Description

Aggregates metrics across tag dimensions.

Usage

aggregate [ groupby ] ..., groupOrAggregateFunction ...

Argument

Type

Required

Multiple

groupby

fieldref

Optional

Can be multiple

groupOrAggregateFunction

expression

Required

Can be multiple

Accelerable

aggregate is always accelerable if the input is accelerable. A dataset that only uses accelerable verbs, can be accelerated, making queries on the dataset respond faster.

Examples

aggregate tx_bytes:sum(tx_bytes), group_by(podName, namespace, clusterUid)

Group the tx_bytes metric by ‘podName’, ‘namespace’ and ‘clusterUid’ on each time bin, calculating the sum of the values in each bin.

Aliases

  • reaggregate (deprecated)