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
{{ message }}
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.
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())
The text was updated successfully, but these errors were encountered: