circle_test Update

This commit is contained in:
Luis I. Perez 2016-04-15 16:37:32 +02:00
parent 717fe0aa20
commit 57ac97c425
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ func (g *haproxy) gatherServer(addr string, acc telegraf.Accumulator) error {
if u.RawQuery == "" { if u.RawQuery == "" {
uri = fmt.Sprintf("%s://%s%s;csv", u.Scheme, u.Host, u.Path) uri = fmt.Sprintf("%s://%s%s;csv", u.Scheme, u.Host, u.Path)
} else { } else {
uri = fmt.Sprintf("%s://%s%s?%s;csv", u.Scheme, u.Host, u.Path,u.RawQuery) uri = fmt.Sprintf("%s://%s%s?%s;csv", u.Scheme, u.Host, u.Path, u.RawQuery)
} }
req, err := http.NewRequest("GET", uri, nil) req, err := http.NewRequest("GET", uri, nil)
if u.User != nil { if u.User != nil {