Skip to content

Commit

Permalink
Use client_golang/prometheus/collectors/version
Browse files Browse the repository at this point in the history
  • Loading branch information
trejjam committed Mar 20, 2024
1 parent 6e6d1e4 commit b956652
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ import (
"github.com/alecthomas/kingpin/v2"
"github.com/go-kit/log/level"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/collectors/version"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/prometheus/common/version"

dockerClient "github.com/docker/docker/client"
prometheusVersion "github.com/prometheus/common/version"
)

const name = "docker_service_exporter"
Expand Down Expand Up @@ -50,7 +51,7 @@ func main() {
).Default(logOutputStderr).String()
)

kingpin.Version(version.Print(name))
kingpin.Version(prometheusVersion.Print(name))
kingpin.CommandLine.HelpFlag.Short('h')
kingpin.Parse()

Expand Down

0 comments on commit b956652

Please sign in to comment.