Add stats option to basicstats sample config

This commit is contained in:
Daniel Nelson 2019-02-01 12:12:15 -08:00
parent c37811ccd8
commit 2857f07af9
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
2 changed files with 4 additions and 8 deletions

View File

@ -8,20 +8,14 @@ emitting the aggregate every `period` seconds.
```toml
# Keep the aggregate basicstats of each metric passing through.
[[aggregators.basicstats]]
## General Aggregator Arguments:
## The period on which to flush & clear the aggregator.
period = "30s"
## If true, the original metric will be dropped by the
## aggregator and will not get sent to the output plugins.
drop_original = false
## BasicStats Arguments:
## 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

View File

@ -47,12 +47,14 @@ type basicstats struct {
}
var sampleConfig = `
## General Aggregator Arguments:
## The period on which to flush & clear the aggregator.
period = "30s"
## If true, the original metric will be dropped by the
## aggregator and will not get sent to the output plugins.
drop_original = false
## Configures which basic stats to push as fields
# stats = ["count", "min", "max", "mean", "stdev", "s2", "sum"]
`
func (m *BasicStats) SampleConfig() string {