Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find module providing package github.com/prometheus/common/log #14

Closed
joelwking opened this issue Nov 10, 2021 · 2 comments
Closed

Comments

@joelwking
Copy link

Please see error below:

ubuntu@ubuntu:~$ go version
go version go1.17.3 linux/amd64
ubuntu@ubuntu:~$ go get -u github.com/lwlcom/cisco_exporter
go: downloading github.com/lwlcom/cisco_exporter v0.0.0-20211025082351-172adc2c872e
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/prometheus/client_golang v1.10.0
go: downloading github.com/prometheus/client_golang v1.11.0
go: downloading github.com/prometheus/common v0.20.0
go: downloading github.com/prometheus/common v0.32.1
go: downloading gopkg.in/yaml.v2 v2.3.0
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
go: downloading golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.1
go: downloading github.com/cespare/xxhash v1.1.0
go: downloading github.com/cespare/xxhash/v2 v2.1.2
go: downloading github.com/golang/protobuf v1.4.3
go: downloading github.com/golang/protobuf v1.5.2
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/prometheus/procfs v0.6.0
go: downloading github.com/prometheus/procfs v0.7.3
go: downloading golang.org/x/sys v0.0.0-20210309074719-68d13333faf2
go: downloading golang.org/x/sys v0.0.0-20211110154304-99a53858aa08
go: downloading github.com/sirupsen/logrus v1.6.0
go: downloading github.com/sirupsen/logrus v1.8.1
go: downloading gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: downloading google.golang.org/protobuf v1.23.0
go: downloading google.golang.org/protobuf v1.27.1
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.3
go: downloading github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
go: downloading github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d
go: downloading github.com/alecthomas/units v0.0.0-20210927113745-59d0afb8317a
github.com/lwlcom/cisco_exporter imports
        github.com/prometheus/common/log: cannot find module providing package github.com/prometheus/common/log
@l3akage
Copy link
Contributor

l3akage commented Nov 10, 2021

Thanks for reporting, i replaced the removed package with a new one. Please check again if it works for you

@joelwking
Copy link
Author

Executing go get again:

ubuntu@ubuntu:~$ go get -u github.com/lwlcom/cisco_exporter
go: downloading github.com/lwlcom/cisco_exporter v0.0.0-20211110193541-2c2e4021969a
go: downloading golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40
go: downloading google.golang.org/protobuf v1.26.0-rc.1
go get: installing executables with 'go get' in module mode is deprecated.
        Use 'go install pkg@version' instead.
        For more information, see https://golang.org/doc/go-get-install-deprecation
        or run 'go help get' or 'go help install'.

then executing the program:

ubuntu@ubuntu:~/go/bin$ ./cisco_exporter -h
Usage: cisco_exporter [ ... ]

Parameters:

  -bgp.enabled
        Scrape bgp metrics (default true)
  -config.file string
        Path to config file
  -debug
        Show verbose debug output in log
  -environment.enabled
        Scrape environment metrics (default true)
  -facts.enabled
        Scrape system metrics (default true)
  -interfaces.enabled
        Scrape interface metrics (default true)
  -legacy.ciphers
        Allow legacy CBC ciphers
  -optics.enabled
        Scrape optic metrics (default true)
  -ssh.batch-size int
        The SSH response batch size (default 10000)
  -ssh.keyfile string
        Key file to use for SSH connection
  -ssh.password string
        Password to use for SSH connection
  -ssh.targets string
        SSH Hosts to scrape
  -ssh.timeout int
        Timeout to use for SSH connection (default 5)
  -ssh.user string
        Username to use for SSH connection (default "cisco_exporter")
  -version
        Print version information.
  -web.listen-address string
        Address on which to expose metrics and web interface. (default ":9362")
  -web.telemetry-path string
        Path under which to expose metrics. (default "/metrics")
ubuntu@ubuntu:~/go/bin$  

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants