|
|
@ -28,6 +28,7 @@ import ( |
|
|
|
|
|
|
|
"github.com/namsral/flag" |
|
|
|
"github.com/prometheus/client_golang/prometheus" |
|
|
|
"github.com/prometheus/client_golang/prometheus/promhttp" |
|
|
|
|
|
|
|
upnp "github.com/sberk42/fritzbox_exporter/fritzbox_upnp" |
|
|
|
) |
|
|
@ -320,7 +321,7 @@ func main() { |
|
|
|
prometheus.MustRegister(collector) |
|
|
|
prometheus.MustRegister(collect_errors) |
|
|
|
|
|
|
|
http.Handle("/metrics", prometheus.Handler()) |
|
|
|
http.Handle("/metrics", promhttp.Handler()) |
|
|
|
fmt.Printf("metrics available at http://%s/metrics\n", *flag_addr) |
|
|
|
log.Fatal(http.ListenAndServe(*flag_addr, nil)) |
|
|
|
} |
|
|
|