diff --git a/app/main.py b/app/main.py index 27ba690..1bfa807 100644 --- a/app/main.py +++ b/app/main.py @@ -23,7 +23,7 @@ async def lifespan(app: FastAPI): app = FastAPI(lifespan=lifespan) -Instrumentator().instrument(app).expose(app) +Instrumentator().instrument(app).expose(app, include_in_schema=False) app.include_router(router) diff --git a/nginx/default.conf b/nginx/default.conf index 9693716..af0c566 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -27,4 +27,8 @@ server{ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://backend; } + + location = /metrics { + return 404; + } }