summary refs log tree commit diff
path: root/synapse/metrics/__init__.py
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-05-22 17:36:20 -0500
committerAmber Brown <hawkowl@atleastfornow.net>2018-05-22 17:36:20 -0500
commitb6063631c3c5ea4c4d118cc9f9d7e2896949ee1d (patch)
tree7d483bcd26e084028e2448e04a6c1fb28821bc9c /synapse/metrics/__init__.py
parentcleanup (diff)
downloadsynapse-b6063631c3c5ea4c4d118cc9f9d7e2896949ee1d.tar.xz
more cleanup
Diffstat (limited to 'synapse/metrics/__init__.py')
-rw-r--r--synapse/metrics/__init__.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/metrics/__init__.py b/synapse/metrics/__init__.py
index bed37b5f56..75117915ff 100644
--- a/synapse/metrics/__init__.py
+++ b/synapse/metrics/__init__.py
@@ -21,7 +21,7 @@ import platform
 import attr
 
 from prometheus_client import Gauge, Histogram, Counter
-from prometheus_client.core import GaugeMetricFamily, CounterMetricFamily, REGISTRY
+from prometheus_client.core import GaugeMetricFamily, REGISTRY
 
 from twisted.internet import reactor
 
@@ -97,8 +97,6 @@ gc_time = Histogram(
 class GCCounts(object):
 
     def collect(self):
-        gc_counts = gc.get_count()
-
         cm = GaugeMetricFamily("python_gc_counts", "GC cycle counts", labels=["gen"])
         for n, m in enumerate(gc.get_count()):
             cm.add_metric([str(n)], m)