0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 20:43:52 +01:00

Remember to emit final linefeed from /metrics page, or Prometheus gets upset

This commit is contained in:
Paul "LeoNerd" Evans 2015-03-06 19:08:47 +00:00
parent 0e847540c3
commit 4d661ec0f3

View file

@ -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)