mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
metrics: Add go default metrics
Signed-off-by: Stefan Bueringer <sbueringer@gmail.com>
This commit is contained in:
committed by
Torin Sandall
parent
510c5ce77e
commit
9493b1d37a
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user