From b0f1f88b5b52feb56b4efa8d3bf1a2243fa85328 Mon Sep 17 00:00:00 2001 From: Daniel Valdivia Date: Tue, 18 May 2021 09:06:31 -0700 Subject: [PATCH] Remove Excessive Logging. Add missing labels for metrics. (#753) Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> --- restapi/admin_info.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/restapi/admin_info.go b/restapi/admin_info.go index 7dbe9604b..08dcb6725 100644 --- a/restapi/admin_info.go +++ b/restapi/admin_info.go @@ -116,6 +116,8 @@ type WidgetLabel struct { var labels = []WidgetLabel{ {Name: "instance"}, {Name: "disk"}, + {Name: "server"}, + {Name: "api"}, } var widgets = []Metric{ @@ -909,7 +911,6 @@ LabelsWaitLoop: endpoint := fmt.Sprintf("%s/api/v1/%s?query=%s%s", getPrometheusURL(), apiType, url.QueryEscape(queryExpr), extraParamters) - log.Printf("%s \t - %d [%d] - %s\n\n", m.Title, target.Step, params.Step, endpoint) resp, err := http.Get(endpoint) if err != nil { log.Println(err)