hadoop_exporter
hadoop_exporter copied to clipboard
./namenode_exporter.go:312:28: undefined: prometheus.Handler
when i run 'go build namenode_exporter.go', I got this question, How to solve this problem?
see https://github.com/freenetdigital/prometheus_oracle_exporter/issues/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()