MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / metrics

Function metrics

src/main.py:337–340  ·  view source on GitHub ↗

Prometheus metrics endpoint for the main Flow2API service.

()

Source from the content-addressed store, hash-verified

335
336@app.get("/metrics")
337async def metrics():
338 """Prometheus metrics endpoint for the main Flow2API service."""
339 payload = await render_main_metrics(db, concurrency_manager=concurrency_manager)
340 return Response(content=payload, media_type=CONTENT_TYPE_LATEST)
341def _ensure_admin_page_session(request: Request):
342 token = admin.get_admin_token_from_cookie(request)
343 if not admin.is_admin_session_token_valid(token):

Callers

nothing calls this directly

Calls 1

render_main_metricsFunction · 0.85

Tested by

no test coverage detected