Skip to content

Commit

Permalink
Fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Yudin committed Jan 29, 2016
1 parent 6a6db34 commit 22c370d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/inputs/powerdns/powerdns.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"strings"
"time"

"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/inputs"
)

Expand All @@ -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)
}
Expand All @@ -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
Expand Down Expand Up @@ -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{}
})
}

0 comments on commit 22c370d

Please sign in to comment.