fix: redefine prometheus client timeout

Signed-off-by: huanggze <loganhuang@yunify.com>
This commit is contained in:
huanggze
2019-11-06 17:38:18 +08:00
parent 8dc4a14483
commit b7fce91ac7

View File

@@ -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,