From 9aabf567954ded0c12d9926d9673a55c83bd2937 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Thu, 15 Feb 2018 19:05:13 -0800 Subject: [PATCH] Use proxy from environment in http input --- plugins/inputs/http/http.go | 1 + 1 file changed, 1 insertion(+) 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, }