Default docker timeout in case one is not defined in config

This commit is contained in:
Cameron Sparr 2016-05-04 14:49:59 -06:00
parent aeadc2c43a
commit bb254fc2b9
1 changed files with 3 additions and 1 deletions

View File

@ -470,6 +470,8 @@ func parseSize(sizeStr string) (int64, error) {
func init() { func init() {
inputs.Add("docker", func() telegraf.Input { inputs.Add("docker", func() telegraf.Input {
return &Docker{} return &Docker{
Timeout: internal.Duration{Duration: time.Second * 5},
}
}) })
} }