mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 05:55:03 -04:00
Fix Prometheus metrics being negative (mixed up start/end) (#13584)
Fix: - https://github.com/matrix-org/synapse/pull/13535#discussion_r949582508 - https://github.com/matrix-org/synapse/pull/13533#discussion_r949577244
This commit is contained in:
parent
3dd175b628
commit
9385c41ba4
4 changed files with 22 additions and 2 deletions
|
@ -86,9 +86,14 @@ backfill_processing_before_timer = Histogram(
|
|||
"sec",
|
||||
[],
|
||||
buckets=(
|
||||
0.1,
|
||||
0.5,
|
||||
1.0,
|
||||
2.5,
|
||||
5.0,
|
||||
7.5,
|
||||
10.0,
|
||||
15.0,
|
||||
20.0,
|
||||
30.0,
|
||||
40.0,
|
||||
|
@ -482,7 +487,7 @@ class FederationHandler:
|
|||
|
||||
processing_end_time = self.clock.time_msec()
|
||||
backfill_processing_before_timer.observe(
|
||||
(processing_start_time - processing_end_time) / 1000
|
||||
(processing_end_time - processing_start_time) / 1000
|
||||
)
|
||||
|
||||
success = await try_backfill(likely_domains)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue