From 67790ced1524cb5f39b542d625338bd46c3373b3 Mon Sep 17 00:00:00 2001 From: Rahul Date: Wed, 20 Nov 2024 14:08:55 +0530 Subject: [PATCH] style: fix logs (#3307) --- cmd/exporters/prometheus/prometheus.go | 2 +- cmd/tools/grafana/dashboard_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/exporters/prometheus/prometheus.go b/cmd/exporters/prometheus/prometheus.go index 1bb397f9b..983e2582d 100644 --- a/cmd/exporters/prometheus/prometheus.go +++ b/cmd/exporters/prometheus/prometheus.go @@ -84,7 +84,7 @@ func (p *Prometheus) Init() error { } if x := p.Params.GlobalPrefix; x != nil { - p.Logger.Debug("use gloabl prefix", slog.String("prefix", *x)) + p.Logger.Debug("use global prefix", slog.String("prefix", *x)) p.globalPrefix = *x if !strings.HasSuffix(p.globalPrefix, "_") { p.globalPrefix += "_" diff --git a/cmd/tools/grafana/dashboard_test.go b/cmd/tools/grafana/dashboard_test.go index a89af8a74..d98bb5f38 100644 --- a/cmd/tools/grafana/dashboard_test.go +++ b/cmd/tools/grafana/dashboard_test.go @@ -1751,7 +1751,7 @@ func TestLinks(t *testing.T) { // Check if the dashboard exists if _, ok := uids[matches[1]]; !ok { - t.Errorf(`dashboard=%s links to not existant dashboard with link="%s"`, path, link) + t.Errorf(`dashboard=%s links to not existent dashboard with link="%s"`, path, link) } query, err := url.ParseQuery(link)