Remember to emit final linefeed from /metrics page, or Prometheus gets upset
This commit is contained in:
parent
0e847540c3
commit
4d661ec0f3
|
@ -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…
Reference in New Issue