Add support for datadog events to statsd input (#5791)

This commit is contained in:
Jorge Landivar
2019-05-14 18:20:35 -05:00
committed by Daniel Nelson
parent 9318d47a38
commit 8f3ed45797
7 changed files with 852 additions and 177 deletions

View File

@@ -49,7 +49,7 @@ func (rs *RunningStats) AddValue(v float64) {
}
// These are used for the running mean and variance
rs.n += 1
rs.n++
rs.ex += v - rs.k
rs.ex2 += (v - rs.k) * (v - rs.k)