Prometheus histograms are cumalative

This commit is contained in:
Erik Johnston 2019-06-14 14:07:32 +01:00
parent d0530382ee
commit 3ed595e327
3 changed files with 12 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",