Prometheus metrics endpoint for the main Flow2API service.
()
| 335 | |
| 336 | @app.get("/metrics") |
| 337 | async 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) |
| 341 | def _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): |
nothing calls this directly
no test coverage detected