Skip to content

Commit a743225

Browse files
committed
dont include /metrics in OAS
1 parent 91ad16e commit a743225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/service-library/src/servicelib/fastapi/monitoring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def initialize_prometheus_instrumentation(app: FastAPI) -> None:
6767

6868

6969
def _startup(app: FastAPI) -> None:
70-
@app.get("/metrics")
70+
@app.get("/metrics", include_in_schema=False)
7171
async def metrics_endpoint(request: Request) -> Response:
7272
"""
7373
Exposes the Prometheus metrics endpoint.

0 commit comments

Comments
 (0)