What is LLM analytics, and how do you build it in Metabase?
LLM analytics turns the exhaust of your AI features — requests, tokens, dollars, latency, errors, and eval scores — into shared metrics about what the LLM layer costs, how reliably it runs, and whether it's getting better. In Metabase, build it by syncing summaries of those signals into a SQL database, modeling clean request-rollup, trace, eval, and user layers, and shipping dashboards that put LLM economics next to the business data everyone already trusts.
What does LLM analytics measure?
- What does the LLM layer cost — by model, app, team, and user?
- Is spend growing faster or slower than usage?
- Which models earn their price, and where is the mix drifting?
- Is the LLM layer fast and dependable enough for the product?
- Are prompt and model changes actually improving quality?
- Who uses the AI features, and what does each active user cost?
- How do LLM economics relate to revenue and retention?
Which tools feed LLM analytics?
| Tool | Best for | Getting data into Metabase |
|---|---|---|
| Langfuse | LLM cost by model and application; Token usage and latency trends | Langfuse public API, pipeline, or Langfuse MCP server for exploration |
| LangSmith | Eval pass rate by experiment; Score trends by dataset | LangSmith API and bulk export, pipeline, or LangSmith MCP server for exploration |
| Helicone | LLM spend by model and application; Cost per user and per feature | Helicone REST API, pipeline, or Helicone MCP server for exploration |
| Braintrust | Eval pass rate by experiment; Score regressions between runs | Braintrust query API (SQL), pipeline, or Braintrust MCP server for exploration |
| Arize Phoenix | Trace volume and latency by project; Token usage by model and app | Phoenix REST API, pipeline, or Phoenix MCP server for exploration |
| W&B Weave | Trace volume and latency by op; Token usage by model | Weave API, pipeline, or W&B MCP server for exploration |
| OpenRouter | LLM spend by model and provider; Token usage trends by model | OpenRouter activity API, pipeline, or OpenRouter MCP server for exploration |
OpenAI and Anthropic usage and cost APIs feed the same model via scheduled exports — dedicated guides for both are planned as this cluster expands.
What shared data models should you build?
Build clean models on top of raw source tables so each dashboard uses the same definitions.
llm_request_rollups— daily requests, prompt/completion tokens, cost, errors, and latency percentiles per app and modelllm_traces— one row per trace: app, model, user, duration, status, tokens, cost — no payloadseval_results— one row per example per scorer per experiment, with scores and pass flagseval_experiments— one row per run: model, prompt version, dataset, costllm_user_rollups— daily requests, tokens, and cost per user or tenantmodels— provider, family, list prices, deprecation statusapps— the attribution table: stable IDs, owners, teams, features
Which LLM metrics matter most?
- Token usage — prompt and completion tokens per period, tracked separately.
- 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 experience, per model and surface.
- LLM error rate — failures over calls, broken out by type.
- Cache hit rate — cached responses and tokens over totals.
- Eval pass rate — passing examples over all examples, per dataset.
- LLM requests per day — the denominator behind every rate above.
How do you connect tools to Metabase?
- Direct database — self-hosted Langfuse and Helicone run on ClickHouse, Phoenix on Postgres; Metabase reads them directly.
- MCP or API + CLI — pull a scoped, summarized export and load it with
mb upload csvfor quick analysis. - Warehouse-backed pipeline — schedule exports (S3 Parquet, batch exports, API scripts) into a warehouse for durable dashboards with history.
Which dashboards should you build first?
- LLM spend overview — daily spend, growth, cost per request, and budgets.
- Model usage & cost — model mix, unit costs, cache savings, deprecated-model traffic.
- LLM latency & errors — percentiles, failure types, retries and fallbacks.
- LLM adoption & unit economics — active users, cost per user, retention splits.
- Eval quality tracking — pass rates, regressions, model comparisons, coverage.
Common mistakes
Related
Integrations
Terms
FAQ
What is LLM analytics?
What is the difference between LLM analytics and LLM observability?
Which metrics should an LLM dashboard track?
Which tools feed LLM analytics in Metabase?
Do I need a data warehouse for LLM analytics?
mb upload csv); move to scheduled warehouse exports once dashboards need history and refresh guarantees.Is Metabase a replacement for Langfuse, LangSmith, or Helicone?
What data do I need to get started?
llm_request_rollups per app and model with requests, prompt and completion tokens, cost, and error counts. That powers the spend overview and most of model usage & cost. Add trace summaries, user rollups, and eval results as the questions arrive.