Commits on Dec 1, 2026
feat(obs): Parasail usage dashboard, upstream response-time metric, l…
…atency and spend alerts
- upstream_request_duration_seconds{endpoint}: Parasail's own response time (chat: until headers; models: until the body), recorded through the client's result hook; transport failures are counted but not timed. - Recording rules for per-endpoint calls and latency, and per-model traffic, success ratio, output and generation tokens/s, spend per hour, and cost per answer. - Second dashboard link ("Parasail usage") next to "Service health" in the footer, exposed as parasail_dashboard_url in /api/config. - Alerts (tickets): UpstreamLatencyHigh (p95 time to chat headers > 1.5s for 5m) and SpendRateHigh (> $5/hour for 15m), with promtool tests for both and for the rule arithmetic.…