Skip to content

Commit

Permalink
Update metric
Browse files Browse the repository at this point in the history
  • Loading branch information
neilalexander committed Jul 19, 2021
1 parent 0ad6e37 commit d420966
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions roomserver/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,12 +428,12 @@ var calculateStateDurations = prometheus.NewHistogramVec(
prometheus.HistogramOpts{
Namespace: "dendrite",
Subsystem: "roomserver",
Name: "calculate_state_duration_microseconds",
Name: "calculate_state_duration_milliseconds",
Help: "How long it takes to calculate the state after a list of events",
Buckets: []float64{ // milliseconds
5, 10, 25, 50, 75, 100, 250, 500,
5, 10, 25, 50, 75, 100, 200, 300, 400, 500,
1000, 2000, 3000, 4000, 5000, 6000,
7000, 8000, 9000, 10000, 15000, 20000,
7000, 8000, 9000, 10000, 15000, 20000, 30000,
},
},
// Takes two labels:
Expand All @@ -453,7 +453,7 @@ var calculateStateDurations = prometheus.NewHistogramVec(
// _load_state_block_nids -> Failed loading the state block nids for a single previous state.
// _load_combined_state -> Failed to load the combined state.
// _resolve_conflicts -> Failed to resolve conflicts.
[]string{"algorithm", "outcome"},
[]string{"algorithm", "outcome", "room_id"},
)

var calculateStatePrevEventLength = prometheus.NewSummaryVec(
Expand Down

0 comments on commit d420966

Please sign in to comment.