diff --git a/web/federate.go b/web/federate.go index 1c96d6ce9..012b972aa 100644 --- a/web/federate.go +++ b/web/federate.go @@ -44,6 +44,10 @@ var ( }) ) +func registerFederationMetrics(r prometheus.Registerer) { + r.MustRegister(federationWarnings, federationErrors) +} + func (h *Handler) federation(w http.ResponseWriter, req *http.Request) { h.mtx.RLock() defer h.mtx.RUnlock() diff --git a/web/web.go b/web/web.go index 1a7c9591c..2a95b3593 100644 --- a/web/web.go +++ b/web/web.go @@ -139,6 +139,7 @@ func newMetrics(r prometheus.Registerer) *metrics { if r != nil { r.MustRegister(m.requestCounter, m.requestDuration, m.responseSize) + registerFederationMetrics(r) } return m }