From 0ca936a12e96d1f4cff85b24804f8ba0a113d129 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Tue, 25 Jul 2017 17:08:32 -0700 Subject: [PATCH] Default to localhost if zookeeper has no servers set (#3056) --- plugins/inputs/zookeeper/zookeeper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/zookeeper/zookeeper.go b/plugins/inputs/zookeeper/zookeeper.go index 977a1f1ed..904ea7c15 100644 --- a/plugins/inputs/zookeeper/zookeeper.go +++ b/plugins/inputs/zookeeper/zookeeper.go @@ -43,7 +43,7 @@ func (z *Zookeeper) Description() string { // Gather reads stats from all configured servers accumulates stats func (z *Zookeeper) Gather(acc telegraf.Accumulator) error { if len(z.Servers) == 0 { - return nil + z.Servers = []string{":2181"} } for _, serverAddress := range z.Servers {