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 {