From 03a5e6a13f6d953c10d8a746c4d7a98ef68ac942 Mon Sep 17 00:00:00 2001 From: Piotr Gwizdala <17101802+thampiotr@users.noreply.github.com> Date: Mon, 10 Jul 2023 15:48:35 +0200 Subject: [PATCH] lints --- .../promtailconvert/internal/build/global_context.go | 3 ++- .../promtailconvert/internal/build/scrape_builder.go | 5 +++-- converter/internal/promtailconvert/internal/build/stages.go | 1 + converter/internal/promtailconvert/promtailconvert.go | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/converter/internal/promtailconvert/internal/build/global_context.go b/converter/internal/promtailconvert/internal/build/global_context.go index 946ae079a612..a70c00306966 100644 --- a/converter/internal/promtailconvert/internal/build/global_context.go +++ b/converter/internal/promtailconvert/internal/build/global_context.go @@ -1,8 +1,9 @@ package build import ( - "github.com/grafana/agent/component/common/loki" "time" + + "github.com/grafana/agent/component/common/loki" ) type GlobalContext struct { diff --git a/converter/internal/promtailconvert/internal/build/scrape_builder.go b/converter/internal/promtailconvert/internal/build/scrape_builder.go index 04d1238802ca..91496594890c 100644 --- a/converter/internal/promtailconvert/internal/build/scrape_builder.go +++ b/converter/internal/promtailconvert/internal/build/scrape_builder.go @@ -2,6 +2,9 @@ package build import ( "fmt" + "strings" + "time" + "github.com/grafana/agent/component/common/loki" flowrelabel "github.com/grafana/agent/component/common/relabel" "github.com/grafana/agent/component/discovery" @@ -20,8 +23,6 @@ import ( "github.com/grafana/agent/pkg/river/token/builder" "github.com/grafana/loki/clients/pkg/promtail/scrapeconfig" "github.com/prometheus/common/model" - "strings" - "time" ) type ScrapeConfigBuilder struct { diff --git a/converter/internal/promtailconvert/internal/build/stages.go b/converter/internal/promtailconvert/internal/build/stages.go index e7249750c8bb..8cd49ad66f1a 100644 --- a/converter/internal/promtailconvert/internal/build/stages.go +++ b/converter/internal/promtailconvert/internal/build/stages.go @@ -2,6 +2,7 @@ package build import ( "fmt" + "github.com/grafana/agent/component/loki/process/stages" "github.com/grafana/agent/converter/diag" promtailstages "github.com/grafana/loki/clients/pkg/logentry/stages" diff --git a/converter/internal/promtailconvert/promtailconvert.go b/converter/internal/promtailconvert/promtailconvert.go index bed853c839f9..e93747d5b4b5 100644 --- a/converter/internal/promtailconvert/promtailconvert.go +++ b/converter/internal/promtailconvert/promtailconvert.go @@ -4,6 +4,7 @@ import ( "bytes" "flag" "fmt" + "github.com/alecthomas/units" "github.com/grafana/agent/component/common/loki" lokiwrite "github.com/grafana/agent/component/loki/write"