Add support for timing sums in statsd input (#3234)

This commit is contained in:
Trevor Pounds
2017-09-14 18:21:54 -04:00
committed by Daniel Nelson
parent f2294c7f2c
commit 3073221f7d
4 changed files with 18 additions and 1 deletions

View File

@@ -235,6 +235,7 @@ func (s *Statsd) Gather(acc telegraf.Accumulator) error {
}
fields[prefix+"mean"] = stats.Mean()
fields[prefix+"stddev"] = stats.Stddev()
fields[prefix+"sum"] = stats.Sum()
fields[prefix+"upper"] = stats.Upper()
fields[prefix+"lower"] = stats.Lower()
fields[prefix+"count"] = stats.Count()