You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The text was updated successfully, but these errors were encountered:
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?
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
Hi
I am getting following error while I am doing 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 ?
The text was updated successfully, but these errors were encountered: