Allow floats in valuecounter aggregator (#5168)

This commit is contained in:
Daniel Nelson
2018-12-26 19:39:34 -08:00
committed by GitHub
parent c72d8a1663
commit dbe6f594a9
3 changed files with 5 additions and 14 deletions

View File

@@ -22,9 +22,8 @@ func NewTestValueCounter(fields []string) telegraf.Aggregator {
var m1, _ = metric.New("m1",
map[string]string{"foo": "bar"},
map[string]interface{}{
"status": 200,
"somefield": 20.1,
"foobar": "bar",
"status": 200,
"foobar": "bar",
},
time.Now(),
)