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_1, groupby_2, ... ], groupOrAggregateFunction_1, groupOrAggregateFunction_2, ...

Argument

Type

Optional

Repeatable

Restrictions

groupby

storable

yes

yes

column

groupOrAggregateFunction

expression

no

yes

none

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)