From c043461f6c682505a51d98611323d010746b7811 Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Fri, 23 Sep 2016 16:01:51 +0100 Subject: [PATCH] Fix varnish plugin to use default values closes #1752 --- CHANGELOG.md | 1 + plugins/inputs/varnish/varnish.go | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 887134ad0..fd1782a08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ - [#1764](https://github.com/influxdata/telegraf/issues/1764): Fix kafka consumer panic when nil error is returned down errs channel. - [#1768](https://github.com/influxdata/telegraf/pull/1768): Speed up statsd parsing. - [#1751](https://github.com/influxdata/telegraf/issues/1751): Fix powerdns integer parse error handling. +- [#1752](https://github.com/influxdata/telegraf/issues/1752): Fix varnish plugin defaults not being used. ## v1.0.1 [unreleased] diff --git a/plugins/inputs/varnish/varnish.go b/plugins/inputs/varnish/varnish.go index 229a5e8b0..c75041221 100644 --- a/plugins/inputs/varnish/varnish.go +++ b/plugins/inputs/varnish/varnish.go @@ -146,7 +146,9 @@ func (s *Varnish) Gather(acc telegraf.Accumulator) error { func init() { inputs.Add("varnish", func() telegraf.Input { return &Varnish{ - run: varnishRunner, + run: varnishRunner, + Stats: defaultStats, + Binary: defaultBinary, } }) }