Register the metrics we collect

This commit is contained in:
Morten Lied Johansen
2021-09-29 22:00:10 +02:00
parent bf7d877183
commit aad2a49591

View File

@@ -23,6 +23,7 @@ var (
)
func Handle(address string) error {
Register(prometheus.DefaultRegisterer)
handler := promhttp.Handler()
return http.ListenAndServe(address, handler)
}