Fix build

This commit is contained in:
Ken Hibino
2021-12-19 13:47:31 -08:00
committed by GitHub
parent 1b8d46a35e
commit d448ad2525
20 changed files with 20 additions and 280 deletions

View File

@@ -92,7 +92,7 @@ func newGetMetricsHandlerFunc(client *http.Client, prometheusAddr string) http.H
for r := range ch {
n--
if r.err != nil {
http.Error(w, fmt.Sprintf("failed to fetch %q: %v", r.query, err), http.StatusInternalServerError)
http.Error(w, fmt.Sprintf("failed to fetch %q: %v", r.query, r.err), http.StatusInternalServerError)
return
}
switch r.query {