mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-16 15:01:23 +01:00
Remember to emit final linefeed from /metrics page, or Prometheus gets upset
This commit is contained in:
parent
0e847540c3
commit
4d661ec0f3
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue