mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-06 15:15:36 +01:00
Update prometheus metrics settings
This commit is contained in:
@@ -43,6 +43,9 @@ def start_app() -> FastAPI:
|
||||
if database_.is_connected:
|
||||
await database_.disconnect()
|
||||
|
||||
Instrumentator().instrument(app).expose(app, include_in_schema=True)
|
||||
Instrumentator(
|
||||
should_ignore_untemplated=True,
|
||||
excluded_handlers=["/docs", "/metrics", "/healthcheck"],
|
||||
).instrument(app).expose(app, include_in_schema=True)
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user