fix(import): Json parser lives outside internal
* Fixed import for JSONFlattener{} it's now in parsers, broke after rebasing.
This commit is contained in:
parent
af84efe5fc
commit
3830782d61
|
@ -12,8 +12,8 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/influxdata/telegraf"
|
"github.com/influxdata/telegraf"
|
||||||
"github.com/influxdata/telegraf/internal"
|
|
||||||
"github.com/influxdata/telegraf/plugins/inputs"
|
"github.com/influxdata/telegraf/plugins/inputs"
|
||||||
|
jsonparser "github.com/influxdata/telegraf/plugins/parsers/json"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Mesos struct {
|
type Mesos struct {
|
||||||
|
@ -299,7 +299,7 @@ func (m *Mesos) gatherMetrics(a string, acc telegraf.Accumulator) error {
|
||||||
|
|
||||||
m.removeGroup(&jsonOut)
|
m.removeGroup(&jsonOut)
|
||||||
|
|
||||||
jf := internal.JSONFlattener{}
|
jf := jsonparser.JSONFlattener{}
|
||||||
|
|
||||||
err = jf.FlattenJSON("", jsonOut)
|
err = jf.FlattenJSON("", jsonOut)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue