May 2019
Intermediate to advanced
442 pages
11h 36m
English
By employing aggregation operators, we can take an instant vector and aggregate its elements, resulting in a new instant vector, usually with fewer elements. Every aggregation of an instant vector such as this works in the ways that we described in the Vertical aggregation section of Chapter 4, Prometheus Metrics Fundamentals.
The available aggregation operators are as follows:
|
Operator |
Description |
Requirements |
|
sum |
Sums the elements |
|
|
min |
Selects the minimum element |
|
|
max |
Selects the maximum element |
|
|
avg |
Calculates the average of the elements |
|
|
stddev |
Calculates the standard deviation of the elements |
|
|
stdvar |
Calculates the standard variance of the elements |
|
|
count |
Counts ... |
Read now
Unlock full access