summary refs log tree commit diff
path: root/synapse/metrics
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2015-03-06 19:08:47 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2015-03-12 16:24:51 +0000
commit4d661ec0f3ccced9cb6a0b1441bfb845f70f1270 (patch)
tree78943c2c3741a29ac4f9e3fb4de1005d75997f09 /synapse/metrics
parentPrometheus needs "escaped" label values (diff)
downloadsynapse-4d661ec0f3ccced9cb6a0b1441bfb845f70f1270.tar.xz
Remember to emit final linefeed from /metrics page, or Prometheus gets upset
Diffstat (limited to 'synapse/metrics')
-rw-r--r--synapse/metrics/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/metrics/__init__.py b/synapse/metrics/__init__.py
index 47e475acd2..1acaa3fd09 100644
--- a/synapse/metrics/__init__.py
+++ b/synapse/metrics/__init__.py
@@ -105,6 +105,8 @@ def render_all():
             strs += ["# FAILED to render %s" % name]
             logger.exception("Failed to render %s metric", name)
 
+    strs.append("") # to generate a final CRLF
+
     return "\n".join(strs)