Skip to content

Commit 6ea37d4

Browse files
author
Lukas Wingerberg
committed
add some prometheus metrics
1 parent d540962 commit 6ea37d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/grpc-ffmpeg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ async def health_check(request):
220220
return web.Response(text="Health check failed", status=500)
221221

222222
async def metrics(request):
223-
return web.Response(body=generate_latest(), content_type=CONTENT_TYPE_LATEST)
223+
224+
return web.Response(body=generate_latest(), headers={"Content-Type": CONTENT_TYPE_LATEST})
224225

225226
app = web.Application()
226227
app.router.add_get('/health', health_check)

0 commit comments

Comments
 (0)