Custom Langfuse dashboards for cost, latency and quality questions
Custom dashboards in self-hosted Langfuse let a team arrange charts that answer its own questions about cost, latency and output quality. A team needs them once finance, engineering and product leads all read the same trace data and each group asks aggregate questions. Built-in views such as the trace list and the session and user pages are built for investigating one request or one conversation. An engineer opens a trace, checks its tokens, timing and scores, and moves on. Leaders need answers such as which model drove last week's spend or whether p95 latency rose after a prompt change, and those answers require grouping and trends across thousands of traces.
The questions a dashboard should answer usually fall into three groups. Cost questions include spend by model, by feature and by environment, and whether totals reconcile with provider invoices. Latency questions include p50, p95 and p99 response times per model and per route, and how they move after a deployment. Quality questions include score trends per prompt version, evaluator output over time and the share of traces that users rated poorly. Each chart depends on a trace attribute that exists in the data. If userId, sessionId or a feature tag is missing from your instrumentation, the chart will show gaps or misleading totals, so check those fields on sample traces before building anything.
Before promising stakeholders a view, confirm three things in your own deployment. First, list the chart types, filters, grouping options and sharing methods available in your Langfuse version, since dashboard capabilities change between releases and v4 changes the underlying data model. Second, decide who builds dashboards and who only reads them. Project-level RBAC roles are an Enterprise license feature, so confirm whether you hold a license key before assuming a restricted viewer role. Third, decide whether a dashboard is enough or whether finance needs exports. For chargeback or BI, the Metrics API is the route to pull the same aggregates into other tools, and that work should be scoped separately.
Dashboard options and when each fits
This table compares the common dashboard widgets and views for Langfuse, the question each answers, the metadata it depends on and its main trade-off. Read it by starting from the question your stakeholders ask, then checking which metadata your applications already send. Options that group by user, session or tag only work when those fields are propagated consistently across every trace.
| Option | Question it answers | Depends on | Trade-off to plan for |
|---|---|---|---|
| Cost by model | Which models drive spend, and how is it changing over time? | Model name and usage on each generation, plus model prices (ingested or inferred) | Low setup effort, but unknown or custom models show no cost until their prices are defined |
| Cost by feature or tag | Which product feature or workflow is generating the spend? | Consistent tags or metadata keys set by every application that calls a model | Tag drift (for example, two spellings of one feature) splits totals and misleads chargeback |
| Latency percentiles | How slow are the slowest responses for users, not just the average? | Trace or observation timing captured for each request and nested generation | Percentiles need enough volume per time bucket to be stable, and long streaming calls skew the numbers |
| Score trends | Is output quality improving or degrading after a prompt or model change? | Scores attached to traces or observations, from evaluators, annotations or user feedback | Trends are only as good as the scoring method, and mixing score names or scales hides real change |
| Breakdowns by user | Which users consume the most cost, or see the most errors and low scores? | A stable userId on every trace | High cardinality: one panel per user is hard to read, so use top-N lists and filters instead |
| Breakdowns by session | Which conversations are long, costly or failing? | A stable sessionId shared across the turns of one conversation | Sessions split across services or missing IDs produce partial totals that look like outliers |
| Cross-metric views (cost and quality together) | Does a cheaper model reduce cost at the expense of quality? | Cost, latency and score data aligned on the same model, feature or prompt version | Requires agreed naming for prompt versions and models, which takes coordination across teams |
| Stakeholder shared views | What does a manager or finance lead need to see without editing queries? | Saved filters and a fixed set of metadata keys agreed in advance | Each shared view is another artifact to review when metadata or model names change |
Building and validating a dashboard step by step
This sequence turns raw Langfuse trace data into dashboards that stakeholders can trust, with a check at each stage so that cost, latency and quality numbers can be reconciled before anyone makes a decision from them.
Confirm trace metadata is consistent
Before building anything, check that the traces your dashboards will read carry the same fields. Your engineers should confirm that model names, feature tags, environment names, userId and sessionId are set the same way across every application that sends traces, including any OpenTelemetry-instrumented services. Pull a sample of recent traces and look for variants such as the same model under two spellings or a feature tag missing on one service. The step is done when a sample of traces shows one consistent value for each field you plan to filter or group by. Dashboards built on inconsistent metadata will split one model or feature into several rows and understate totals.
Define the questions for each stakeholder
Write down the questions each audience needs answered before opening the Langfuse UI. Platform engineers may ask which model has the highest p95 latency this week, finance may ask what each feature cost by model, and product owners may ask whether score trends fell after a prompt change. Assign each question a dimension, a metric and a time granularity. The output is a short written list per stakeholder group, agreed with the people who will read the dashboard. If a question cannot be answered from the metadata confirmed in the previous step, return to that step before continuing.
Build the widgets for each question
Create one widget per question in the Langfuse dashboard builder, choosing the metric (cost, token usage, latency percentiles or score aggregates), the grouping dimension (model, feature, user or session) and the chart type. Keep latency percentiles separate from averages so that tail behavior is visible. Name each widget after the question it answers. The step is complete when every question on the list has a widget and each widget renders data for a known recent period. Ask a second person to read the widget titles and say which question each answers, which catches unclear labels early.
Set filters and time ranges
Apply environment, model, feature and user filters where a widget needs them, and set a default time range that matches how stakeholders read the data, such as the last seven or thirty days. Check that filters combine as expected, for example that a feature filter does not silently drop traces from a second model. Record which filters are fixed and which the viewer can change. The output is a configured dashboard with documented defaults. Verify by changing the time range and confirming that totals move in the direction you expect.
Check totals against a known sample
Choose a small, known set of generations, ideally a few that your team ran deliberately with known models and token counts, and trace each one through Langfuse. Compare the per-generation cost and token usage shown in the trace with the widget totals for the same filter and period. Where they differ, check whether the difference comes from missing usage types, a pricing model that Langfuse does not match, or a time zone boundary. The step is done when the sample totals match the widget totals within the tolerance your finance and engineering leads agree on.
Reconcile cost against provider invoices
Compare the cost totals for a full billing period with the invoices from each model provider. Differences are expected where Langfuse infers cost from its price table rather than ingesting the provider's reported cost, or where a provider bills cached or batch tokens differently. Document each gap by model and usage type, and decide whether to add custom model prices. Confirm the provider billing period and the Langfuse date range cover the same days. The output is a short reconciliation note stating the remaining differences and their causes.
Save, share and review the dashboard
Save the dashboard, set the view each stakeholder should open, and share it with the named readers in your organization. Confirm that each reader can see the widgets they need and that access follows your project role model, which may depend on the self-hosted Enterprise features described in the feature documentation. Schedule a review date with the owners, and re-run the known-sample check after any change to models, prices or instrumentation. The step is complete when each stakeholder group has opened the dashboard and confirmed its answers match the questions they wrote down.
Views for engineering, finance and product
Engineers use dashboards to find slow calls, failing models and regressions after a release. Averages hide the problems they care about, so build the view around percentiles, error rates and side-by-side model comparisons. Filter by environment and release, so a staging load test does not blend into production numbers.
- Latency percentiles: Chart p50, p95 and p99 latency per model and per endpoint, with time-to-first-token where your instrumentation records it.
- Error and failure rates: Show failed generations as a share of total calls, grouped by model and by error type, so a provider outage is visible at a glance.
- Model comparisons: Put two or three models or model versions in the same chart over the same time window, using identical filters.
- Release markers: Tag traces with the application version, so a latency jump can be traced to a deployment.
- Environment filters: Keep development, staging and production traces separate, and state the filter on every panel.
Before trusting these charts, confirm that traces from all services use consistent model names and environment tags, and that failed calls are recorded as errors rather than dropped. Ask your team to verify one slow trace by hand against the provider's own logs.
Finance teams need spend totals they can reconcile with provider invoices and internal cost centers. Their dashboards show cost over time by model, feature and team, and they depend on cost fields being complete before any chart is shared. Cost quality is usually a data problem before it is a dashboard problem.
- Cost by model: Show spend per model per week or month, with unit prices visible so changes in price and changes in usage can be told apart.
- Cost by feature and team: Group spend by a feature tag or team tag that application code sets on each trace. Untagged spend should appear as its own line, not disappear.
- Token mix: Split input, output and cached tokens, because the same spend can come from very different usage patterns.
- Budget comparison: Plot cumulative spend against a monthly budget line that your finance team owns and maintains.
- Unpriced models: List models without a price definition as a separate panel, so their calls are counted as a gap rather than as zero cost.
Before sharing a cost view, confirm that the Langfuse totals match provider invoices for a sample period, and agree with finance how custom or self-hosted model prices are maintained. Ask who approves changes to a price definition.
Product and quality leads ask whether the assistant is getting better, which users are affected by quality problems, and how sessions behave over time. Their views rely on scores, user identifiers and session identifiers, so the value of the dashboard depends on how consistently those fields are sent and how scores are defined.
- Score trends: Chart average scores over time for each evaluator or human rating, with the number of scored traces shown next to each point.
- User cohorts: Group users by the week they first appeared and track their score or retention over later weeks, using the user identifier your application sends.
- Session-level views: Aggregate sessions by length, number of turns and final score, to find conversations that go wrong after several turns.
- Feature breakdown: Compare scores for each product feature or prompt version, using the same metadata keys as the engineering views.
- Sample sizes: Display counts beside every average, so a score based on a handful of traces is not read as a trend.
Before trusting these views, confirm that user and session identifiers are pseudonymous and consistent across requests, and that each score name has one written definition. Ask the quality team to agree which evaluator is the source of truth.
How trace data reaches a dashboard
The path starts in an instrumented application that sends traces to Langfuse Web over the OpenTelemetry or SDK ingestion route. Langfuse Web hands events to Langfuse Worker, which processes them asynchronously and writes analytical data to ClickHouse, while PostgreSQL holds application metadata. The dashboard UI and the Metrics API both read from ClickHouse, so a dashboard is only as current as the worker's processing. Check that the worker is keeping up with ingestion before you trust a chart that looks empty or stale.
Trace flow from instrumented application to dashboard and Metrics API inside the self-hosted boundary.
Questions teams ask before building dashboards
What drives the effort of a Langfuse dashboard set?
The number of questions the dashboards must answer and how consistent the underlying trace data is drive most of the effort. Each question needs a defined metric, a grouping such as model, feature, user or session, and a time window that stakeholders agree on. Effort also grows with the number of audiences, since an executive cost view, an engineering latency view and a quality view each need their own layout and filters. Ask for a written list of questions and the metric definition behind each one before comparing quotes, because that list is what the quote should price.
Can our internal team build these dashboards alone?
Often yes, if the team already runs Langfuse in production and has someone comfortable with its data model and query options. The work is mostly defining metrics, building views and checking numbers against source data, which is ordinary analytics work. Teams usually need help when trace data is inconsistent across services, when the dashboards must be reviewed as evidence for finance or audit, or when nobody has time to maintain them after launch. A partner can take on the build and handover, while your team keeps ownership of the definitions.
What does the work need from our team before it starts?
The work depends on three inputs from your side. First, trace hygiene: consistent model names, feature tags, user and session identifiers, and environment labels on the traces you want to chart. Second, stakeholder questions: a short list from finance, product, engineering and security that says what each person needs to decide. Third, sample data: a representative export or a staging project with realistic traffic, so the views can be tested before they reach real reports. Missing trace hygiene is the most common reason dashboards show numbers nobody trusts.
How long does it take to get reliable numbers from new dashboards?
The time depends on how much trace data already exists, how clean it is and how many checks the numbers need before people rely on them. Reliable numbers need a reconciliation step, where totals are compared with provider invoices or internal logs for a sample period, and that step cannot be skipped. Ask any provider to explain the sequence of tasks, the checks it runs and which inputs would extend the schedule, and ask your own team to confirm which data sources it can share. Timelines should come from the written scope, not from a general estimate.
Which dashboard numbers should we verify against provider invoices?
Verify cost totals, token totals and request counts by model for a fixed past period. Compare them with the monthly invoices from each model provider and with your own gateway logs, if you run one. Expect small differences from rounding, currency conversion, cached or batch pricing and models with no price in Langfuse. Each difference should be explained and tracked, not hidden. Use the same time zone and date range on both sides before concluding that a number is wrong.
What is the risk of latency percentiles built on incomplete traces?
Latency percentiles look precise even when the underlying traces are partial. If some requests are missing spans, if retries are recorded as separate traces, or if streaming responses end before the measured span closes, p50 and p95 values will describe the wrong population. The fix is to agree on which span defines latency for each feature, to check a sample of traces by hand, and to chart the count of traces next to each percentile so that gaps are visible. Ask engineering to confirm how the application instruments streaming and retries before the views go live.
What changes in our dashboards after a Langfuse upgrade?
Minor updates within a major version are generally non-disruptive and apply database migrations automatically at startup, but a major upgrade can change the data model and the query layer that dashboards depend on. The Langfuse v3 to v4 guide moves to an observations-first ClickHouse data model and advises about 3x ClickHouse disk headroom when backfilling historic data, so dashboards and saved queries should be retested after the move. Plan a regression check of every chart against known totals, and confirm the required ClickHouse, PostgreSQL and Redis versions in the upgrade guide before scheduling the change.
Who maintains the dashboards once they are live?
Someone must own the metric definitions, review dashboards when models or features change, and rerun the reconciliation checks on a schedule. Without that owner, dashboards drift as new models, feature names and trace fields appear. Ongoing support can be handled by your own team, by a retainer with a partner, or by a mix of both, and the split should be written down. Ask for the maintenance tasks, their frequency and who approves changes to shared views before you agree on a support arrangement.
How DeployOpen scopes dashboard work
Dashboard work is scoped in writing before any build starts, because the scope is what keeps a set of charts from becoming an open-ended reporting project. The written scope names the stakeholders who will read each view (for example, platform engineering for latency, finance for spend by model, and product leads for score trends), the operational and business questions each view must answer, the widgets that answer them, and the validation checks that show the numbers are right. Each question should be phrased so it can be answered from a specific field or metric, such as cost by model and feature, or p95 latency per route. Questions that cannot be answered from the data Langfuse actually stores should be identified during scoping, not discovered after the dashboard is built.
Validation belongs in the scope as well. Before any dashboard is signed off, the scope should state how totals will be reconciled against an independent source, such as provider invoices for token spend or application logs for request counts, and which user, session and feature identifiers must be present on traces for the filters to work. Ask your team to confirm which tags, metadata keys and userId and sessionId values your applications already send, since missing attributes are a common reason a dashboard shows incomplete results. Decide who may edit shared dashboards and who may only view them, and confirm whether your self-hosted version includes the role controls you need, since some project-level RBAC features require an Enterprise license key.
Ongoing review is written into the scope too. Dashboards drift as models, prompts and features change, so the scope should set a review cadence, name the owner who checks that widgets still match the questions, and define how stakeholder requests are logged and priced as change requests. Ask any implementation partner to state in the quote which items are one-time build work and which are recurring review or retainer work. The fixed-scope agreement sets the deliverables, and changes to questions or widgets after sign-off should follow the same written process.
How DeployOpen delivers Langfuse dashboards
DeployOpen plans and builds Langfuse custom dashboards for latency, cost and quality inside your own infrastructure, as part of a self-hosted Langfuse deployment. We start from the operational and business questions your teams need answered, then agree the dashboards, data and access model in writing before any build begins.
How we scope
- Interview platform, finance, product and security owners to list the questions each dashboard must answer.
- Map each question to the traces, usage fields, scores and user or session attributes it depends on.
- Confirm which fields your applications already send and which need instrumentation changes first.
How we build
- Build dashboards for cost by model and feature, latency percentiles, score trends and user or session views.
- Check dashboard totals against a sample of raw traces and, where relevant, against provider invoices.
- Set up access for stakeholders so each audience sees the views and data scope agreed during scoping.
How we hand over
- Document each dashboard's question, filters, definitions and known limits so owners can maintain it.
- Walk your team through the build with a test run on live or representative data before sign-off.
- Hand over configuration, access records and a list of open items agreed in the written scope.
How we support
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
- Ongoing support for dashboard changes, Langfuse upgrades and new questions is available as a retainer.
- Confirm with us during scoping which Langfuse version and data model your dashboards will track.

