From 5bd8572b5677e3f43c654398af7d61cccf7c20da Mon Sep 17 00:00:00 2001 From: AntonBazhal Date: Tue, 22 Mar 2016 13:29:32 -0400 Subject: [PATCH] Minor refactoring --- plugins/inputs/docker/README.md | 2 +- plugins/inputs/docker/docker.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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"