From b1efa7c6165b1d61f5f6231b36acd9ac6339c2a4 Mon Sep 17 00:00:00 2001 From: Maksim Paskal Date: Sun, 28 Jul 2024 12:42:17 +0100 Subject: [PATCH] Using HTTP Proxy Signed-off-by: Maksim Paskal --- pkg/metrics/metrics.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/metrics/metrics.go b/pkg/metrics/metrics.go index 67e7e94..14e3869 100644 --- a/pkg/metrics/metrics.go +++ b/pkg/metrics/metrics.go @@ -75,6 +75,7 @@ func (i *Instrumenter) InstrumentedRoundTripper() http.RoundTripper { promhttp.InstrumentRoundTripperDuration(requestLatencyHistogram, i.instrumentRoundTripperEndpoint(requestsPerEndpointCounter, &http.Transport{ + Proxy: http.ProxyFromEnvironment, TLSClientConfig: &tls.Config{ InsecureSkipVerify: i.insecureSkipVerify, //nolint:gosec },