diff --git a/plugins/inputs/docker/README.md b/plugins/inputs/docker/README.md index 5a3b02aa3..553fd8fcd 100644 --- a/plugins/inputs/docker/README.md +++ b/plugins/inputs/docker/README.md @@ -20,7 +20,7 @@ for the stat structure can be found # To use TCP, set endpoint = "tcp://[ip]:[port]" # To use environment variables (ie, docker-machine), set endpoint = "ENV" endpoint = "unix:///var/run/docker.sock" - # To collect metrics from TLS-enabled daemon + # To collect metrics from a TLS-enabled daemon # tls_enabled = true # tls_ca = "~/certificates_path/ca.pem" # tls_cert = "~/certificates_path/cert.pem" diff --git a/plugins/inputs/docker/docker.go b/plugins/inputs/docker/docker.go index 33fdf0416..9c1889370 100644 --- a/plugins/inputs/docker/docker.go +++ b/plugins/inputs/docker/docker.go @@ -2,6 +2,7 @@ package system import ( "encoding/json" + "errors" "fmt" "log" "regexp" @@ -14,7 +15,6 @@ import ( "github.com/influxdata/telegraf/plugins/inputs" "github.com/fsouza/go-dockerclient" - "errors" ) type Docker struct { @@ -58,7 +58,7 @@ var sampleConfig = ` ## To use TCP, set endpoint = "tcp://[ip]:[port]" ## To use environment variables (ie, docker-machine), set endpoint = "ENV" endpoint = "unix:///var/run/docker.sock" - ## To collect metrics from TLS-enabled daemon + ## To collect metrics from a TLS-enabled daemon # tls_enabled = true # tls_ca = "~/certificates_path/ca.pem" # tls_cert = "~/certificates_path/cert.pem"