Remove Golang reverseproxy and use http Client

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis
2018-03-03 10:44:54 +00:00
parent 67bda365cd
commit 26e0de3497
5 changed files with 75 additions and 62 deletions

View File

@ -48,7 +48,7 @@ func AddMetricsHandler(handler http.HandlerFunc, prometheusQuery PrometheusQuery
err := json.Unmarshal(upstreamBody, &functions)
if err != nil {
log.Println(err)
log.Printf("Metrics upstream error: %s", err)
w.Header().Set("Content-Type", "text/plain")
w.WriteHeader(http.StatusInternalServerError)