Expose matrix-ops-bot /metrics endpoint
This commit is contained in:
parent
145a3e70c3
commit
2fde5ffc87
2 changed files with 2 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ async def lifespan(app: FastAPI) -> AsyncIterator[None]:
|
|||
# start_http_server(9000)
|
||||
app = FastAPI(lifespan=lifespan)
|
||||
instrumentator = Instrumentator().instrument(app)
|
||||
instrumentator.expose(app, endpoint="/metrics", include_in_schema=False)
|
||||
bearer_security = HTTPBearer(auto_error=False)
|
||||
basic_security = HTTPBasic(auto_error=False)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue