diff --git a/internal/build/build.go b/internal/build/build.go index 3e3b1bce12df..6b728e4928a6 100644 --- a/internal/build/build.go +++ b/internal/build/build.go @@ -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" ) @@ -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. diff --git a/internal/component/loki/source/docker/internal/dockertarget/target.go b/internal/component/loki/source/docker/internal/dockertarget/target.go index 5e118fab98c3..b71550e07dc1 100644 --- a/internal/component/loki/source/docker/internal/dockertarget/target.go +++ b/internal/component/loki/source/docker/internal/dockertarget/target.go @@ -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" @@ -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,