You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: plugins/aggregators/histogram/README.md
+47-24
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,9 @@
3
3
The histogram aggregator plugin creates histograms containing the counts of
4
4
field values within a range.
5
5
6
-
Values added to a bucket are also added to the larger buckets in the
7
-
distribution. This creates a [cumulative histogram](https://en.wikipedia.org/wiki/Histogram#/media/File:Cumulative_vs_normal_histogram.svg).
6
+
If `cumulative` is set to true, values added to a bucket are also added to the
7
+
larger buckets in the distribution. This creates a [cumulative histogram](https://en.wikipedia.org/wiki/Histogram#/media/File:Cumulative_vs_normal_histogram.svg).
8
+
Otherwise, values are added to only one bucket, which creates an [ordinary histogram](https://en.wikipedia.org/wiki/Histogram#/media/File:Cumulative_vs_normal_histogram.svg)
8
9
9
10
Like other Telegraf aggregators, the metric is emitted every `period` seconds.
10
11
By default bucket counts are not reset between periods and will be non-strictly
@@ -16,7 +17,7 @@ increasing while Telegraf is running. This behavior can be changed by setting th
16
17
Each metric is passed to the aggregator and this aggregator searches
17
18
histogram buckets for those fields, which have been specified in the
18
19
config. If buckets are found, the aggregator will increment +1 to the appropriate
19
-
bucket otherwise it will be added to the `+Inf` bucket. Every `period`
20
+
bucket. Otherwise, it will be added to the `+Inf` bucket. Every `period`
20
21
seconds this data will be forwarded to the outputs.
21
22
22
23
The algorithm of hit counting to buckets was implemented on the base
@@ -39,16 +40,20 @@ of the algorithm which is implemented in the Prometheus
39
40
## of accumulating the results.
40
41
reset = false
41
42
43
+
## Whether bucket values should be accumulated. If set to false, "gt" tag will be added.
44
+
## Defaults to true.
45
+
cumulative = true
46
+
42
47
## Example config that aggregates all fields of the metric.
43
48
# [[aggregators.histogram.config]]
44
-
# ## The set of buckets.
49
+
# ## Right borders of buckets (with +Inf implicitly added).
0 commit comments