mirror of
https://github.com/flibusta-apps/books_downloader.git
synced 2025-12-06 06:55:37 +01:00
Add metrics
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
from fastapi import FastAPI
|
||||
|
||||
from prometheus_fastapi_instrumentator import Instrumentator
|
||||
|
||||
from app.views import router
|
||||
|
||||
|
||||
@@ -8,4 +10,6 @@ def start_app() -> FastAPI:
|
||||
|
||||
app.include_router(router)
|
||||
|
||||
Instrumentator().instrument(app).expose(app, include_in_schema=True)
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user