This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Description
Build fails with error message:
./hpraid_exporter.go:198:28: undefined: prometheus.Handler
Cause:
Recent change in the prometheus/client_golang repo
(encountered using version 1.1.0)
Solution:
Add import for:
"github.com/prometheus/client_golang/prometheus/promhttp"
in main() replace:
http.Handle(StartParams.Path, prometheus.Handler())
with:
http.Handle(StartParams.Path, promhttp.Handler())