fritzbox_exporter
fritzbox_exporter copied to clipboard
Incompatible with latest go versions
Hi,
go get github.com/ndecker/fritzbox_exporter
works under
- ubuntu 20.04 with ubuntu-packaged go 1.13.8
- alpine 3.13 with go 1.15.12
but not with
- alpine 3.14 with go 1.16.5
- ubuntu 20.04 with snap package go 1.16.6
Error message in both cases:
go/pkg/mod/github.com/ndecker/[email protected]/main.go:326:26: undefined: prometheus.Handler
Solution:
add "github.com/prometheus/client_golang/prometheus/promhttp" to imports and replace prometheus.Handler with promhttp.Handler
Hello @hadmut , i have updated the dependencies. It builds with current go and prometheus client.