Remove Excessive Logging. Add missing labels for metrics. (#753)

Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
This commit is contained in:
Daniel Valdivia
2021-05-18 09:06:31 -07:00
committed by GitHub
parent 8917f415cc
commit b0f1f88b5b

View File

@@ -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)