add in go runtime metrics

This commit is contained in:
Steve Brunton 2021-05-06 21:45:03 -04:00
parent 6f53244308
commit 856665bc12

View File

@ -174,7 +174,13 @@ func createMetricsHandler() (http.Handler, error) {
return nil, err
}
promhttp.Handler()
registry := prometheus.NewRegistry()
err = registry.Register(prometheus.NewGoCollector())
if err != nil {
return nil, err
}
err = registry.Register(nc)
if err != nil {
return nil, err