diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-03-06 19:08:47 +0000 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-03-12 16:24:51 +0000 |
commit | 4d661ec0f3ccced9cb6a0b1441bfb845f70f1270 (patch) | |
tree | 78943c2c3741a29ac4f9e3fb4de1005d75997f09 | |
parent | Prometheus needs "escaped" label values (diff) | |
download | synapse-4d661ec0f3ccced9cb6a0b1441bfb845f70f1270.tar.xz |
Remember to emit final linefeed from /metrics page, or Prometheus gets upset
-rw-r--r-- | synapse/metrics/__init__.py | 2 |
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) |