Skip to content

Commit

Permalink
chore(deps): fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ptodev committed Mar 20, 2024
1 parent ef212d9 commit 0c2a2c7
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 3 deletions.
3 changes: 2 additions & 1 deletion clients/cmd/promtail/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/grafana/dskit/log"
"github.com/grafana/dskit/tracing"
"github.com/prometheus/client_golang/prometheus"
collectors_version "github.com/prometheus/client_golang/prometheus/collectors/version"
"github.com/prometheus/common/version"

"github.com/grafana/loki/clients/pkg/logentry/stages"
Expand All @@ -32,7 +33,7 @@ import (
)

func init() {
prometheus.MustRegister(version.NewCollector("promtail"))
prometheus.MustRegister(collectors_version.NewCollector("promtail"))
}

var mtx sync.Mutex
Expand Down
2 changes: 1 addition & 1 deletion pkg/loki/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (
gerrors "github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/collectors"
"github.com/prometheus/client_golang/prometheus/collectors/version"
"github.com/prometheus/common/model"
"github.com/prometheus/common/version"

"github.com/grafana/loki/pkg/bloomcompactor"
"github.com/grafana/loki/pkg/logqlmodel/stats"
Expand Down
2 changes: 1 addition & 1 deletion tools/tsdb/helpers/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/grafana/dskit/services"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/collectors"
"github.com/prometheus/common/version"
"github.com/prometheus/client_golang/prometheus/collectors/version"

"github.com/grafana/loki/pkg/loki"
"github.com/grafana/loki/pkg/storage"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,7 @@ github.com/prometheus/client_golang/api
github.com/prometheus/client_golang/api/prometheus/v1
github.com/prometheus/client_golang/prometheus
github.com/prometheus/client_golang/prometheus/collectors
github.com/prometheus/client_golang/prometheus/collectors/version
github.com/prometheus/client_golang/prometheus/internal
github.com/prometheus/client_golang/prometheus/promauto
github.com/prometheus/client_golang/prometheus/promhttp
Expand Down

0 comments on commit 0c2a2c7

Please sign in to comment.