Fixed formatting

This commit is contained in:
Greg Linton 2016-05-10 14:08:11 -04:00
parent f4c8d2f683
commit 08c548d408
1 changed files with 181 additions and 183 deletions

View File

@ -24,7 +24,6 @@ type haproxy struct {
var sampleConfig = ` var sampleConfig = `
## An array of address to gather stats about. Specify an ip on hostname ## An array of address to gather stats about. Specify an ip on hostname
## with optional port. ie localhost, 10.10.3.33:1936, etc. ## with optional port. ie localhost, 10.10.3.33:1936, etc.
## If no servers are specified, then default to 127.0.0.1:1936 ## If no servers are specified, then default to 127.0.0.1:1936
servers = ["http://myhaproxy.com:1936", "http://anotherhaproxy.com:1936"] servers = ["http://myhaproxy.com:1936", "http://anotherhaproxy.com:1936"]
## Or you can also use local socket ## Or you can also use local socket
@ -130,7 +129,6 @@ func importCsvResult(r io.Reader, acc telegraf.Accumulator, host string) error {
result, err := csv.ReadAll() result, err := csv.ReadAll()
now := time.Now() now := time.Now()
var keys []string var keys []string
px_sv_status := make(map[string]map[string]int) px_sv_status := make(map[string]map[string]int)
non_stat_fields := map[string]bool{ non_stat_fields := map[string]bool{