Register correct metric

This commit is contained in:
Neil Alexander 2021-07-02 09:36:29 +01:00
parent a9ddbfaed4
commit 3911f3a0c1
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -53,7 +53,6 @@ type inputWorker struct {
r *Inputer r *Inputer
running atomic.Bool running atomic.Bool
input *fifoQueue input *fifoQueue
roomID string
} }
// Guarded by a CAS on w.running // Guarded by a CAS on w.running
@ -126,7 +125,7 @@ func (r *Inputer) WriteOutputEvents(roomID string, updates []api.OutputEvent) er
} }
func init() { func init() {
prometheus.MustRegister(processRoomEventDuration) prometheus.MustRegister(roomserverInputBackpressure)
} }
var roomserverInputBackpressure = prometheus.NewSummaryVec( var roomserverInputBackpressure = prometheus.NewSummaryVec(