Merge pull request #5461 from matrix-org/erikj/histograms_are_cumalitive

Prometheus histograms are cumalative
This commit is contained in:
Erik Johnston 2019-06-14 18:21:42 +01:00 committed by GitHub
commit 9ca4ae7131
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 12 deletions

View file

@ -228,7 +228,8 @@ class EventsStore(
self._state_resolution_handler = hs.get_state_resolution_handler()
# Collect metrics on the number of forward extremities that exist.
self._current_forward_extremities_amount = {}
# Counter of number of extremities to count
self._current_forward_extremities_amount = c_counter()
BucketCollector(
"synapse_forward_extremities",