Usage & Token Metering
AVAILABLENaagmani provides authoritative, real-time telemetry on every token consumed across your organization.
Key Telemetry Metrics #
Rendering diagram...
graph LR
Req["Request"] --> TTFT["Time to First Token (TTFT)"]
Req --> Duration["Total Adapter Duration"]
Req --> Tokens["Prompt / Completion / Total Tokens"]
Req --> Cost["COGS Provider Cost ($ USD)"]
- Token Counts: Prompt tokens, Completion tokens, and Total tokens parsed from provider payloads or computed via tokenizer accumulators.
- Time to First Token (TTFT): Crucial metric for user-facing streaming applications measuring the delay before the first token chunk arrives.
- Calculated COGS (Cost of Goods Sold): Real-time calculation of provider costs using published per-million token pricing models.
- Authoritative Usage Flag: Distinguishes between provider-verified token counts and estimated streaming heuristics.
Inspecting Telemetry #
- Usage Dashboard: View aggregate trends, charts, and project breakdowns at http://localhost:3000/usage.
- Attempts Table: Inspect granular per-request dispatch logs at http://localhost:3000/attempts.
Next Steps #
- Learn about spending budgets: FinOps & Budget Hierarchy
- API Reference for attempts: Provider Attempts API