aggregate

Type of operation: Aggregate, Metrics

Description

Aggregates metrics across tag dimensions.

If groupby is not specified, the default grouping will be used. The default grouping for aggregate is the set of primary key columns.

Usage

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

Argument

Type

Required

Multiple

Constant

groupby

fieldref

Optional

Can be multiple

Variable

groupOrAggregateFunction

expression

Required

Can be multiple

Variable

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)