Add option to reset buckets on flush to histogram aggregator (#5641)
This commit is contained in:
committed by
Daniel Nelson
parent
db1e902c81
commit
13a00eeca5
@@ -7,8 +7,9 @@ Values added to a bucket are also added to the larger buckets in the
|
||||
distribution. This creates a [cumulative histogram](https://en.wikipedia.org/wiki/Histogram#/media/File:Cumulative_vs_normal_histogram.svg).
|
||||
|
||||
Like other Telegraf aggregators, the metric is emitted every `period` seconds.
|
||||
Bucket counts however are not reset between periods and will be non-strictly
|
||||
increasing while Telegraf is running.
|
||||
By default bucket counts are not reset between periods and will be non-strictly
|
||||
increasing while Telegraf is running. This behavior can be changed by setting the
|
||||
`reset` parameter to true.
|
||||
|
||||
#### Design
|
||||
|
||||
@@ -34,6 +35,10 @@ of the algorithm which is implemented in the Prometheus
|
||||
## aggregator and will not get sent to the output plugins.
|
||||
drop_original = false
|
||||
|
||||
## If true, the histogram will be reset on flush instead
|
||||
## of accumulating the results.
|
||||
reset = false
|
||||
|
||||
## Example config that aggregates all fields of the metric.
|
||||
# [[aggregators.histogram.config]]
|
||||
# ## The set of buckets.
|
||||
|
||||
Reference in New Issue
Block a user