From bb254fc2b93e5222375ebe165985d5f897526458 Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Wed, 4 May 2016 14:49:59 -0600 Subject: [PATCH] Default docker timeout in case one is not defined in config --- plugins/inputs/docker/docker.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/inputs/docker/docker.go b/plugins/inputs/docker/docker.go index 79d506e9a..727c4342c 100644 --- a/plugins/inputs/docker/docker.go +++ b/plugins/inputs/docker/docker.go @@ -470,6 +470,8 @@ func parseSize(sizeStr string) (int64, error) { func init() { inputs.Add("docker", func() telegraf.Input { - return &Docker{} + return &Docker{ + Timeout: internal.Duration{Duration: time.Second * 5}, + } }) }