Add metrics

This commit is contained in:
2022-02-12 13:35:46 +03:00
parent 697f5ec0e9
commit d93c16ffe8
3 changed files with 37 additions and 1 deletions

View File

@@ -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