summary refs log tree commit diff
path: root/synapse/metrics
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-05-21 17:03:20 -0500
committerAmber Brown <hawkowl@atleastfornow.net>2018-05-21 17:03:20 -0500
commitc60e0d5e02789217671482bc209da5ac0fd25baf (patch)
tree0cc1fcad61e574d4bb54a0ca6eadd3c97e1d0737 /synapse/metrics
parentlook at the Prometheus metrics instead (diff)
downloadsynapse-c60e0d5e02789217671482bc209da5ac0fd25baf.tar.xz
don't need the resource portion
Diffstat (limited to 'synapse/metrics')
-rw-r--r--synapse/metrics/resource.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/synapse/metrics/resource.py b/synapse/metrics/resource.py
index 870f400600..7996e6ab66 100644
--- a/synapse/metrics/resource.py
+++ b/synapse/metrics/resource.py
@@ -13,27 +13,4 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-from twisted.web.resource import Resource
-
-import synapse.metrics
-
-
 METRICS_PREFIX = "/_synapse/metrics"
-
-
-class MetricsResource(Resource):
-    isLeaf = True
-
-    def __init__(self, hs):
-        Resource.__init__(self)  # Resource is old-style, so no super()
-
-        self.hs = hs
-
-    def render_GET(self, request):
-        response = synapse.metrics.render_all()
-
-        request.setHeader("Content-Type", "text/plain")
-        request.setHeader("Content-Length", str(len(response)))
-
-        # Encode as UTF-8 (default)
-        return response.encode()