summary refs log tree commit diff
path: root/synapse/metrics
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-04-05 13:34:54 +0100
committerErik Johnston <erik@matrix.org>2017-04-05 13:34:54 +0100
commitb43d3267e25949acb4ad7333ac47afa6e38cb815 (patch)
tree839f4f41e1a65dff4987835f627a228a945f0447 /synapse/metrics
parentMerge pull request #2097 from matrix-org/erikj/repl_tcp_client (diff)
downloadsynapse-b43d3267e25949acb4ad7333ac47afa6e38cb815.tar.xz
Fixup some metrics for tcp repl
Diffstat (limited to 'synapse/metrics')
-rw-r--r--synapse/metrics/metric.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/metrics/metric.py b/synapse/metrics/metric.py
index e87b2b80a7..920cde1dd0 100644
--- a/synapse/metrics/metric.py
+++ b/synapse/metrics/metric.py
@@ -83,6 +83,9 @@ class CounterMetric(BaseMetric):
     def render(self):
         return map_concat(self.render_item, sorted(self.counts.keys()))
 
+    def unregister_counter(self, *values):
+        self.counts.pop(values, None)
+
 
 class CallbackMetric(BaseMetric):
     """A metric that returns the numeric value returned by a callback whenever