2
0
Эх сурвалжийг харах

set timeout to prometheus defualt timeouts

AjayTripathy 6 жил өмнө
parent
commit
22215282a7
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      main.go

+ 2 - 2
main.go

@@ -379,8 +379,8 @@ func main() {
 	var LongTimeoutRoundTripper http.RoundTripper = &http.Transport{ // may be necessary for long prometheus queries. TODO: make this configurable
 		Proxy: http.ProxyFromEnvironment,
 		DialContext: (&net.Dialer{
-			Timeout:   300 * time.Second,
-			KeepAlive: 300 * time.Second,
+			Timeout:   120 * time.Second,
+			KeepAlive: 120 * time.Second,
 		}).DialContext,
 		TLSHandshakeTimeout: 10 * time.Second,
 	}