Added extra information to docs about total output in stream aggregation. (#4130)

Signed-off-by: Alexander Marshalov <_@marshalov.org>
This commit is contained in:
Alexander Marshalov 2023-04-13 16:08:07 +02:00 committed by GitHub
parent 174a70369c
commit 47e16594dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 KiB

View File

@ -355,6 +355,20 @@ For example, see below time series produced by config with aggregation interval
<img alt="total aggregation" src="stream-aggregation-check-total.png"> <img alt="total aggregation" src="stream-aggregation-check-total.png">
`total` is not affected by [counter resets](https://docs.victoriametrics.com/keyConcepts.html#counter) -
it continues to increase monotonically with respect to the previous value.
The counters are most often reset when the application is restarted.
For example:
<img alt="total aggregation counter reset" src="stream-aggregation-check-total-reset.png">
The same behavior will occur when creating or deleting new series in an aggregation group -
`total` will increase monotonically considering the values of the series set.
An example of changing a set of series can be restarting a pod in the Kubernetes.
This changes a label with pod's name in the series, but `total` account for such a scenario and do not reset the state of aggregated metric.
### increase ### increase
`increase` returns the increase of input [counters](https://docs.victoriametrics.com/keyConcepts.html#counter). `increase` returns the increase of input [counters](https://docs.victoriametrics.com/keyConcepts.html#counter).