From f80ac120f36d19861e40ebb074f5908833560045 Mon Sep 17 00:00:00 2001 From: Zakhar Bessarab Date: Wed, 3 Apr 2024 20:18:48 +0400 Subject: [PATCH] lib/promscrape/config: fix missing timeout for http client (#6063) Follow-up for b3b29ba6 Signed-off-by: Zakhar Bessarab --- lib/promscrape/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/promscrape/client.go b/lib/promscrape/client.go index 8b683b927..25d23e41d 100644 --- a/lib/promscrape/client.go +++ b/lib/promscrape/client.go @@ -90,6 +90,7 @@ func newClient(ctx context.Context, sw *ScrapeWork) (*client, error) { hc := &http.Client{ Transport: rt, + Timeout: sw.ScrapeTimeout, } if sw.DenyRedirects {