monitoring: fix jetson metrics newlines
This commit is contained in:
parent
f08d740d83
commit
0331e7ea99
@ -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)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user