monitoring: fix jetson metrics newlines

This commit is contained in:
Brad Stein 2026-01-26 22:50:12 -03:00
parent f08d740d83
commit 0331e7ea99

View File

@ -65,7 +65,7 @@ class Handler(http.server.BaseHTTPRequestHandler):
for k, v in metrics.items():
out.append(f"# TYPE jetson_{k} gauge")
out.append(f"jetson_{k}{label} {v}")
body = "\\n".join(out) + "\\n"
body = "\n".join(out) + "\n"
self.send_response(200)
self.send_header("Content-Type", "text/plain; version=0.0.4")
self.send_header("Content-Length", str(len(body)))