diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-05-22 17:36:20 -0500 |
---|---|---|
committer | Amber Brown <hawkowl@atleastfornow.net> | 2018-05-22 17:36:20 -0500 |
commit | b6063631c3c5ea4c4d118cc9f9d7e2896949ee1d (patch) | |
tree | 7d483bcd26e084028e2448e04a6c1fb28821bc9c /synapse/metrics | |
parent | cleanup (diff) | |
download | synapse-b6063631c3c5ea4c4d118cc9f9d7e2896949ee1d.tar.xz |
more cleanup
Diffstat (limited to 'synapse/metrics')
-rw-r--r-- | synapse/metrics/__init__.py | 4 |
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) |