From 22c370db8d7bb02a7fbdd22778875e7685930101 Mon Sep 17 00:00:00 2001 From: Pavel Yudin Date: Fri, 29 Jan 2016 18:18:55 +0300 Subject: [PATCH] Fix compilation errors --- plugins/inputs/powerdns/powerdns.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/inputs/powerdns/powerdns.go b/plugins/inputs/powerdns/powerdns.go index 6c0c6882d1072..0203d916ec58e 100644 --- a/plugins/inputs/powerdns/powerdns.go +++ b/plugins/inputs/powerdns/powerdns.go @@ -9,6 +9,7 @@ import ( "strings" "time" + "github.com/influxdata/telegraf" "github.com/influxdata/telegraf/plugins/inputs" ) @@ -34,7 +35,7 @@ func (p *Powerdns) Description() string { return "Read metrics from one or many PowerDNS servers" } -func (p *Powerdns) Gather(acc inputs.Accumulator) error { +func (p *Powerdns) Gather(acc telegraf.Accumulator) error { if len(p.UnixSockets) == 0 { return p.gatherServer("/var/run/pdns.controlsocket", acc) } @@ -48,7 +49,7 @@ func (p *Powerdns) Gather(acc inputs.Accumulator) error { return nil } -func (p *Powerdns) gatherServer(address string, acc inputs.Accumulator) error { +func (p *Powerdns) gatherServer(address string, acc telegraf.Accumulator) error { conn, err := net.DialTimeout("unix", address, defaultTimeout) if err != nil { return err @@ -119,7 +120,7 @@ func parseResponse(metrics string) (map[string]interface{}, error) { } func init() { - inputs.Add("powerdns", func() inputs.Input { + inputs.Add("powerdns", func() telegraf.Input { return &Powerdns{} }) }