Add stats option to basicstats sample config
This commit is contained in:
parent
c37811ccd8
commit
2857f07af9
|
@ -8,20 +8,14 @@ emitting the aggregate every `period` seconds.
|
||||||
```toml
|
```toml
|
||||||
# Keep the aggregate basicstats of each metric passing through.
|
# Keep the aggregate basicstats of each metric passing through.
|
||||||
[[aggregators.basicstats]]
|
[[aggregators.basicstats]]
|
||||||
|
|
||||||
## General Aggregator Arguments:
|
|
||||||
|
|
||||||
## The period on which to flush & clear the aggregator.
|
## The period on which to flush & clear the aggregator.
|
||||||
period = "30s"
|
period = "30s"
|
||||||
|
|
||||||
## If true, the original metric will be dropped by the
|
## If true, the original metric will be dropped by the
|
||||||
## aggregator and will not get sent to the output plugins.
|
## aggregator and will not get sent to the output plugins.
|
||||||
drop_original = false
|
drop_original = false
|
||||||
|
|
||||||
## BasicStats Arguments:
|
|
||||||
|
|
||||||
## Configures which basic stats to push as fields
|
## Configures which basic stats to push as fields
|
||||||
stats = ["count","min","max","mean","stdev","s2","sum"]
|
# stats = ["count", "min", "max", "mean", "stdev", "s2", "sum"]
|
||||||
```
|
```
|
||||||
|
|
||||||
- stats
|
- stats
|
||||||
|
|
|
@ -47,12 +47,14 @@ type basicstats struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
var sampleConfig = `
|
var sampleConfig = `
|
||||||
## General Aggregator Arguments:
|
|
||||||
## The period on which to flush & clear the aggregator.
|
## The period on which to flush & clear the aggregator.
|
||||||
period = "30s"
|
period = "30s"
|
||||||
## If true, the original metric will be dropped by the
|
## If true, the original metric will be dropped by the
|
||||||
## aggregator and will not get sent to the output plugins.
|
## aggregator and will not get sent to the output plugins.
|
||||||
drop_original = false
|
drop_original = false
|
||||||
|
|
||||||
|
## Configures which basic stats to push as fields
|
||||||
|
# stats = ["count", "min", "max", "mean", "stdev", "s2", "sum"]
|
||||||
`
|
`
|
||||||
|
|
||||||
func (m *BasicStats) SampleConfig() string {
|
func (m *BasicStats) SampleConfig() string {
|
||||||
|
|
Loading…
Reference in New Issue