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
1 changed files with 2 additions and 0 deletions

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)