Add running field to procstat_lookup (#5069)

This commit is contained in:
Daniel Nelson
2018-12-11 19:11:33 -08:00
committed by GitHub
parent d954218f75
commit cf2b85f383
3 changed files with 44 additions and 30 deletions

View File

@@ -82,6 +82,7 @@ func (ac *accumulator) AddHistogram(
}
func (ac *accumulator) AddMetric(m telegraf.Metric) {
m.SetTime(m.Time().Round(ac.precision))
if m := ac.maker.MakeMetric(m); m != nil {
ac.metrics <- m
}