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

pull/4/merge
Paul "LeoNerd" Evans 10 years ago
parent 0e847540c3
commit 4d661ec0f3
  1. 2
      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)

Loading…
Cancel
Save