mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-10-13 04:58:50 +00:00
Add a provenance-est provider whose upstream answers with no "usage" field at all, driving a real, non-streaming chat completion against it under Yaegi. exerciseUsageProvenance then parses GET /metrics with the real Prometheus TextParser and confirms both new families (llmgateway_usage_provenance_requests_total and -_tokens_total) render as COUNTER type with a distinct "estimated" series for this provider and a distinct "reported" series for openai's own already-driven traffic, then confirms GET /admin/api/overview surfaces the identical estimated observation and never leaks a "reported" key into the compact admin summary. Run at the end of run(), after every other probe that already reads /metrics or /admin/api/overview, so it never perturbs a counter an earlier probe asserted on.