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

./namenode_exporter.go:312:28: undefined: prometheus.Handler #18

Open
luckercs opened this issue Apr 25, 2020 · 1 comment
Open

./namenode_exporter.go:312:28: undefined: prometheus.Handler #18

luckercs opened this issue Apr 25, 2020 · 1 comment

Comments

@luckercs
Copy link

when i run 'go build namenode_exporter.go', I got this question, How to solve this problem?

@ghost
Copy link

ghost commented Mar 17, 2021

see floyd871/prometheus_oracle_exporter#22 for a similar problem.

You need to add this import : "github.com/prometheus/client_golang/prometheus/promhttp" and replace prometheus.Handler() by promhttp.Handler()

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

1 participant