dendrite_roomserver_calculate_state_duration_microseconds as histogram rather than summary

This commit is contained in:
Neil Alexander 2021-07-19 15:24:10 +01:00
parent 628e4cc709
commit e7affae448
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -424,8 +424,8 @@ func (v *StateResolution) loadStateAfterEventsForNumericTuples(
return result, nil return result, nil
} }
var calculateStateDurations = prometheus.NewSummaryVec( var calculateStateDurations = prometheus.NewHistogramVec(
prometheus.SummaryOpts{ prometheus.HistogramOpts{
Namespace: "dendrite", Namespace: "dendrite",
Subsystem: "roomserver", Subsystem: "roomserver",
Name: "calculate_state_duration_microseconds", Name: "calculate_state_duration_microseconds",