diff --git a/plugins/inputs/http/http.go b/plugins/inputs/http/http.go index bdbb5f6fa..16e776cd0 100644 --- a/plugins/inputs/http/http.go +++ b/plugins/inputs/http/http.go @@ -105,6 +105,7 @@ func (h *HTTP) Gather(acc telegraf.Accumulator) error { h.client = &http.Client{ Transport: &http.Transport{ TLSClientConfig: tlsCfg, + Proxy: http.ProxyFromEnvironment, }, Timeout: h.Timeout.Duration, }