diff --git a/go.mod b/go.mod index eef103b..f62ee10 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,6 @@ require ( github.com/golang/protobuf v1.3.5 // indirect github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect github.com/pkg/errors v0.9.1 - github.com/povilasv/prommod v0.0.12 github.com/prometheus/client_golang v1.5.1 github.com/prometheus/common v0.9.1 github.com/prometheus/procfs v0.0.11 diff --git a/go.sum b/go.sum index 8f5db28..6e0b15b 100644 --- a/go.sum +++ b/go.sum @@ -64,8 +64,6 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/povilasv/prommod v0.0.12 h1:0bk9QJ7kD6SmSsk9MeHhz5Qe6OpQl11Fvo7cvvmNUQM= -github.com/povilasv/prommod v0.0.12/go.mod h1:GnuK7wLoVBwZXj8bhbJNx/xFSldy7Q49A44RJKNM8XQ= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= github.com/prometheus/client_golang v1.5.1 h1:bdHYieyGlH+6OLEk2YQha8THib30KP0/yD0YH9m6xcA= diff --git a/main.go b/main.go index 16f6eec..ef22c8e 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,6 @@ import ( "net/http" _ "net/http/pprof" - "github.com/povilasv/prommod" "github.com/povilasv/systemd_exporter/systemd" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" @@ -34,7 +33,7 @@ func main() { ) log.AddFlags(kingpin.CommandLine) - kingpin.Version(prommod.Print(version.Print("systemd_exporter"))) + kingpin.Version(version.Print("systemd_exporter")) kingpin.HelpFlag.Short('h') kingpin.Parse() @@ -45,7 +44,6 @@ func main() { r := prometheus.NewRegistry() r.MustRegister(version.NewCollector("systemd_exporter")) - r.MustRegister(prommod.NewCollector("systemd_exporter")) collector, err := systemd.NewCollector(log.Base()) if err != nil {