From b7fce91ac7b530dbb0dc76dc0ca1efdc2e8f4c6f Mon Sep 17 00:00:00 2001 From: huanggze Date: Wed, 6 Nov 2019 17:38:18 +0800 Subject: [PATCH] fix: redefine prometheus client timeout Signed-off-by: huanggze --- pkg/simple/client/prometheus/prometheus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/simple/client/prometheus/prometheus.go b/pkg/simple/client/prometheus/prometheus.go index 6584e77b9..5309caa30 100644 --- a/pkg/simple/client/prometheus/prometheus.go +++ b/pkg/simple/client/prometheus/prometheus.go @@ -36,7 +36,7 @@ type PrometheusClient struct { func NewPrometheusClient(options *PrometheusOptions) (*PrometheusClient, error) { return &PrometheusClient{ client: &http.Client{ - Timeout: time.Duration(3) * time.Second, + Timeout: 10 * time.Second, }, endpoint: options.Endpoint, secondaryEndpoint: options.SecondaryEndpoint,