From 3830782d61419894ee45a5c9d1bfa2227ac581f3 Mon Sep 17 00:00:00 2001 From: Sergio Jimenez Date: Tue, 9 Feb 2016 23:57:48 +0100 Subject: [PATCH] fix(import): Json parser lives outside internal * Fixed import for JSONFlattener{} it's now in parsers, broke after rebasing. --- plugins/inputs/mesos/mesos.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/inputs/mesos/mesos.go b/plugins/inputs/mesos/mesos.go index 29c424815..800843236 100644 --- a/plugins/inputs/mesos/mesos.go +++ b/plugins/inputs/mesos/mesos.go @@ -12,8 +12,8 @@ import ( "sync" "github.com/influxdata/telegraf" - "github.com/influxdata/telegraf/internal" "github.com/influxdata/telegraf/plugins/inputs" + jsonparser "github.com/influxdata/telegraf/plugins/parsers/json" ) type Mesos struct { @@ -299,7 +299,7 @@ func (m *Mesos) gatherMetrics(a string, acc telegraf.Accumulator) error { m.removeGroup(&jsonOut) - jf := internal.JSONFlattener{} + jf := jsonparser.JSONFlattener{} err = jf.FlattenJSON("", jsonOut)