feat(sofiia-console): expose /metrics and add basic ops counters

Expose Prometheus-style metrics endpoint and add counters for send requests, idempotency replays, and cursor pagination calls, including a safe in-process fallback exposition when prometheus_client is unavailable.

Made-with: Cursor
This commit is contained in:
Apple
2026-03-02 04:52:04 -08:00
parent d9ce366538
commit 93f94030f4
4 changed files with 148 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
fastapi>=0.104.0
uvicorn[standard]>=0.24.0
httpx>=0.25.0
python-multipart>=0.0.6
pyyaml>=6.0
python-dotenv>=1.0.0
prometheus-client>=0.20.0
# Projects / Documents / Sessions persistence (Phase 1: SQLite)
aiosqlite>=0.20.0
# Document text extraction (optional — used when available)
pypdf>=3.0.0
python-docx>=1.1.0