Cost Insights Private betaEnterpriseEnterprise +
Cost Insights is a private beta feature. To request access, contact your account manager.
Cost Insights shows estimated costs and compute time for your dbt projects and models directly in the dbt platform, so you can measure and share the impact of optimizations like state-aware orchestration.
State-aware orchestration makes your dbt workflows more efficient by reusing models and tests instead of running full rebuilds. When this is enabled, Cost Insights helps you demonstrate the resulting cost reductions and efficiency gains.
With Cost Insights, you can see:
- How much your dbt models cost to run: See the compute cost and times for each model and job in your warehouse's native units.
- The cost reductions from using state-aware orchestration: Understand the cost reduction when state-aware orchestration reuses unchanged models.
- Cost trends over time: Track your warehouse spend and optimization impact across your dbt projects.
The Cost Insights section is available in different dbt platform areas and lets you view your cost data and the impact of state-aware optimizations across various dimensions:
Prerequisities
To view cost data, ensure you have:
- A dbt account with dbt Fusion Engine enabled. Contact your account manager to enable Fusion for your account.
- One of the roles listed in Assign required permissions.
- A supported data warehouse: Snowflake, BigQuery, or Databricks.
For setup instructions, see Set up Cost Insights.
Understanding cost and reduction estimates
Cost estimates are intended for visibility and optimization, not billing reconciliation.
dbt calculates the cost of running your dbt models using your data warehouse’s usage metadata and billing context. dbt computes costs daily using up to the last seven days of available data.
Warehouse-specific logic
The following sections explain how costs are calculated for each supported warehouse. Expand each section to view the details.
Cost reduction calculation
dbt calculates cost reductions by comparing actual costs to what costs would have been without model reuse. To do this, dbt uses data from the last seven days (where available) and performs the following steps:
- Calculates the average cost per model build.
- Counts how many times a model was reused instead of rebuilt.
- Multiplies the reused model count by the average cost per build to determine total cost reduction.
Formula:
average_cost_per_build * reuse_count
dbt calculates reductions per model and per deployment environment (production and staging), based on recent historical runs.
Additional notes:
- dbt calculates estimated costs and savings daily.
- Pricing inputs come from warehouse system tables (where available), connection-level configuration, or default list prices.
Example
The following example shows how dbt calculates cost reductions. Looking back seven days, assuming a model runs on two distinct days:
| Loading table... |
The average cost per execution: $15 ÷ 15 runs = $1 per run
If the model was reused eight times instead of rebuilt during this same period, the estimated cost reduction is: $1 average cost per run * 8 reuses = $8
Considerations
Keep the following in mind when using Cost Insights:
Data collection and refresh
- Cost Insights uses your platform metadata credentials to access warehouse system tables. No separate credentials are needed beyond the platform metadata setup.
- Cost data refreshes daily and reflects the previous day's usage, which means there is a lag of up to one day between when a job runs and when its cost data appears.
- You need sufficient permissions to query warehouse metadata tables.
Cost accuracy
- dbt calculates costs using warehouse-reported usage data and applies default credit or compute costs based on standard warehouse pricing.
- If you have custom pricing agreements with your warehouse provider, override the default values in your account settings to ensure accurate cost reporting. For more information, see Set up Cost Insights.
- Update your cost variables whenever your warehouse pricing contracts change to maintain accurate tracking.
- Changes to cost variables only apply to future calculations — historical cost data remains unchanged.
Optimization data
- Optimization and usage reduction data is available once state-aware orchestration is enabled and begins reusing models across runs.
- For accounts already using state-aware orchestration, run at least one full model build within the last 10 days before enabling Cost Insights to establish a baseline for cost reduction calculations. If you don't see cost reduction data, run a full build to establish the baseline.
- Cost Insights currently calculates estimated reductions in warehouse compute usage at the model level and will expand to include tests and seeds in the future.
Exporting data
- You can export cost data as a CSV file for further analysis and reporting. For more information, see Explore cost data.
Related FAQs
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.