metrics: Add go default metrics

Signed-off-by: Stefan Bueringer <sbueringer@gmail.com>
This commit is contained in:
Stefan Bueringer
2019-02-23 16:52:19 +01:00
committed by Torin Sandall
parent 510c5ce77e
commit 9493b1d37a
+1
View File
@@ -367,6 +367,7 @@ func (s *Server) initRouter() {
catchAllDur := duration.MustCurryWith(prometheus.Labels{"handler": PromHandlerCatch})
GetHealthDur := duration.MustCurryWith(prometheus.Labels{"handler": PromHandlerHealth})
promRegistry.MustRegister(duration)
promRegistry.MustRegister(prometheus.NewGoCollector())
router := s.router