How do you analyze LLM usage and cost data in Metabase?
LLM observability tools hold the operational record of your AI features: every request, token, dollar, latency spike, and eval score. In Metabase, bring summaries of those signals into a SQL database and model adjacent layers for request rollups, trace summaries, eval results, and user rollups. Those layers support dashboards for spend, unit costs, latency, error rates, adoption, and eval quality — next to the business data the rest of the company already reports on.
Which tools does this cover?
- Langfuse — traces and observations, generations, scores, sessions
- LangSmith — experiments and runs, datasets, feedback scores, annotation queues
- Helicone — request logs, sessions, users, cache hits
- Braintrust — experiments and eval scores, logs, datasets, spans
- Arize Phoenix — traces and spans, experiments, datasets, annotations
- W&B Weave — Weave traces and evaluations, calls and ops, evaluation runs, W&B runs and sweeps
- OpenRouter — daily usage and spend by model, per-request generation costs, provider routing, API-key-level usage
For the infrastructure side of the same story, cross-link to observability & infrastructure — LLM latency and error dashboards sit naturally next to Sentry and Datadog service health.
What is the shared LLM analytics data model?
| Concept | Common terms | Used for |
|---|---|---|
| Request rollup | Daily usage per model/app: requests, tokens, cost | Spend, unit costs, volume trends |
| Trace | Trace, run, call, generation, span tree | Latency, errors, per-request cost |
| Eval result | Score, grade, assertion, feedback | Pass rates, regressions, model comparisons |
| Experiment | Experiment, eval run, comparison | The unit of quality iteration |
| User rollup | Usage per user/tenant per day | Cost per user, adoption, power users |
| Model | Model, deployment, endpoint, provider | The cost and quality comparison axis |
| App / feature | App, project, tag, surface | The attribution join key for everything above |
How do you connect LLM tools to Metabase?
- Direct database route — self-hosted Langfuse and Helicone run on ClickHouse, Phoenix on Postgres; point Metabase at the same database.
- MCP or API + CLI route — pull a scoped, summarized export through the tool's MCP server or export API, save CSV, and load it with
mb upload csvfor fast exploration. - Pipeline route — schedule exports (S3 Parquet from LangSmith or Braintrust, batch exports from Langfuse, API scripts elsewhere) into a warehouse for durable dashboards.
What can you analyze across these tools?
- Token usage — prompt and completion tokens per period, by model and app
- Cost per 1M tokens— the blended unit cost that makes models comparable
- LLM cost per user— spend over active users of AI features
- p95 LLM latency — the tail response time, per model and surface
- LLM error rate — failures over calls, broken out by error type
- Cache hit rate — cached responses and tokens over totals, with real savings
- Eval pass rate — passing examples over all examples, per dataset and scorer
- LLM requests per day — the volume denominator behind every other number
Which dashboards should you build?
- LLM spend overview — daily spend, growth, and budget tracking
- Model usage & cost — model mix, unit costs, and deprecated-model traffic
- LLM latency & errors — percentiles, failure types, and retries
- LLM adoption & unit economics — active users, cost per user, and margins
- Eval quality tracking — pass rates, regressions, and coverage