max
Max aggregation operator. There are two variants of the :max
operator.
Aggregation
Select the maximum value for corresponding times across all matching time series.
name,ssCpuUser,:eq,
:max
When matching against the sample data in the table below, the highlighted time series would be
included in the aggregate result:
The values from the corresponding intervals will be aggregated. For the first interval using
the sample data above the values are 1.0
, 8.0
, and 1.0
. Each value other than NaN
contributes one to the max. This leads to a final result of:
The only tags for the aggregated result are those that are matched exactly (:eq clause)
as part of the choosing criteria or are included in a group by.
Math
Select the maximum value for corresponding times across the time series resulting from the
input expression. This is typically used when there is a need to use some other aggregation
for the grouping. Example: