Skip to content

Commit

Permalink
fix more lint
Browse files Browse the repository at this point in the history
  • Loading branch information
thampiotr committed Mar 26, 2024
1 parent e33008b commit 2f5e452
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion internal/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package build

import (
"github.com/prometheus/client_golang/prometheus"
collectorversion "github.com/prometheus/client_golang/prometheus/collectors/version"
"github.com/prometheus/common/version"
)

Expand Down Expand Up @@ -34,7 +35,7 @@ func injectVersion() {
func NewCollector(program string) prometheus.Collector {
injectVersion()

return version.NewCollector(program)
return collectorversion.NewCollector(program)
}

// Print returns version information.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"sync"
"time"

docker_types "github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/client"
"github.com/docker/docker/pkg/stdcopy"
"github.com/go-kit/log"
Expand Down Expand Up @@ -94,7 +94,7 @@ func (t *Target) processLoop(ctx context.Context) {
t.wg.Add(1)
defer t.wg.Done()

opts := docker_types.ContainerLogsOptions{
opts := container.LogsOptions{
ShowStdout: true,
ShowStderr: true,
Follow: true,
Expand Down
2 changes: 1 addition & 1 deletion internal/component/prometheus/scrape/scrape.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ type Arguments struct {
// protocol are accepted by Prometheus and with what preference (most wanted is first).
// Supported values (case sensitive): PrometheusProto, OpenMetricsText0.0.1,
// OpenMetricsText1.0.0, PrometheusText0.0.4.
ScrapeProtocols []string `yaml:"scrape_protocols,omitempty"`
ScrapeProtocols []string `river:"scrape_protocols,attr,optional"`
// The HTTP resource path on which to fetch metrics from targets.
MetricsPath string `river:"metrics_path,attr,optional"`
// The URL scheme with which to fetch metrics from targets.
Expand Down

0 comments on commit 2f5e452

Please sign in to comment.