Browse Source

feat(alerting): increase timeout to 15s

bergquist 9 years ago
parent
commit
8cd9225eb6
2 changed files with 2 additions and 2 deletions
  1. 1 1
      pkg/services/alerting/eval_handler.go
  2. 1 1
      pkg/tsdb/graphite/graphite.go

+ 1 - 1
pkg/services/alerting/eval_handler.go

@@ -20,7 +20,7 @@ type DefaultEvalHandler struct {
 func NewEvalHandler() *DefaultEvalHandler {
 	return &DefaultEvalHandler{
 		log:             log.New("alerting.evalHandler"),
-		alertJobTimeout: time.Second * 10,
+		alertJobTimeout: time.Second * 15,
 	}
 }
 

+ 1 - 1
pkg/tsdb/graphite/graphite.go

@@ -38,7 +38,7 @@ func init() {
 	}
 
 	HttpClient = http.Client{
-		Timeout:   time.Duration(10 * time.Second),
+		Timeout:   time.Duration(15 * time.Second),
 		Transport: tr,
 	}
 }