add in go runtime metrics

This commit is contained in:
Steve Brunton 2021-05-06 21:45:03 -04:00
parent 4bfa7adfef
commit 2c3eaf66cd

View File

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