bergquist 9 лет назад
Родитель
Сommit
29b60329cc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      pkg/tsdb/graphite/graphite.go

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

@@ -45,7 +45,7 @@ func (e *GraphiteExecutor) Execute(queries tsdb.QuerySlice, context *tsdb.QueryC
 	client := http.Client{Timeout: time.Duration(10 * time.Second)}
 	req, _ := http.NewRequest(http.MethodPost, e.Url+"/render?", strings.NewReader(params.Encode()))
 	if e.BasicAuth {
-		req.SetBasicAuth("carl", "carl")
+		req.SetBasicAuth(e.BasicAuthPassword, e.BasicAuthPassword)
 	}
 
 	res, err := client.Do(req)