Skip to content
Snippets Groups Projects
Commit 71702804 authored by Sergio Jimenez's avatar Sergio Jimenez
Browse files

fix(import): Json parser lives outside internal

* Fixed import for JSONFlattener{} it's now in parsers, broke after
  rebasing.
parent babecb6d
No related branches found
No related tags found
No related merge requests found
...@@ -12,8 +12,8 @@ import ( ...@@ -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 { ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment