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

Go Build is failing while trying build #18

Closed
vkkothawale opened this issue Oct 22, 2019 · 3 comments
Closed

Go Build is failing while trying build #18

vkkothawale opened this issue Oct 22, 2019 · 3 comments

Comments

@vkkothawale
Copy link

Hi
I am getting following error while I am doing go build

  • go build
    prometheus-zookeeper_exporter
    ./main.go:11:2: imported and not used: prometheus-zookeeper_exporter/vendor/github.com/prometheus/client_golang/prometheus/promhttp"
    ./main.go:69:28: undefined: prometheus.Handler

Could you please look suggest me changes I am just making binary out of your main.go file using Jenkins ?

@carlpett
Copy link
Owner

Hi @vkkothawale,
In the code in master there isn't an import of promhttp, so you cannot be building directly from the source. Are you working from a fork?

@vkkothawale
Copy link
Author

Hi @carlpett
I have fixed that issue by adding promhttp.Handler() instead of prometheus.Handler() in your source code that worked fine can you please provide me json file file for the zookeeper exporter dashboard for grafana I have check your source code but did not find any json if you can provide that it will great.
Thanks

@carlpett
Copy link
Owner

Hi,
I'm afraid I do not have any readymade Grafana dashboards. If you make one, please consider contributing it here in a PR!

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