May 2019
Intermediate to advanced
442 pages
11h 36m
English
The aggregation operations we discussed earlier are always applied to instant vectors. When we need to perform those aggregations on range vectors, PromQL provides the *_over_time family of functions, which work as described in the Horizontal aggregation section of Chapter 4, Prometheus Metrics Fundamentals. All of them take a range vector and output an instant vector. Following is the description of the operations:
|
Operation |
Description |
|
avg_over_time() |
Average value of all samples in the range. |
|
count_over_time() |
Count of all samples in the range. |
|
max_over_time() |
Maximum value of all samples in the range. |
|
min_over_time() |
Minimum value of all samples in the range. |
|
quantile_over_time() ... |
Read now
Unlock full access