<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Retrieve DBU Count per Compute Type for Accurate Cost Calculation? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-retrieve-dbu-count-per-compute-type-for-accurate-cost/m-p/135515#M50372</link>
    <description>&lt;P&gt;&lt;STRONG&gt;1. Is there a documented way to retrieve the DBU count per VM or compute type?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yes, but it's not directly exposed via a single API or table. The DBU consumption rate depends on:&lt;/P&gt;&lt;P&gt;Compute type (Jobs Compute, All-Purpose Compute, SQL Compute, etc.)&lt;BR /&gt;VM instance type (e.g., Standard_D16s_v3)&lt;BR /&gt;Databricks pricing tier (Standard, Premium, Enterprise)&lt;BR /&gt;Cloud provider (Azure, AWS, GCP)&lt;/P&gt;&lt;P&gt;Databricks provides DBU calculators and pricing matrices per cloud provider, which list DBU rates per instance type and workload type. For Azure, you can refer to the&amp;nbsp;&lt;A href="https://www.databricks.com/product/pricing/product-pricing/instance-types" target="_blank"&gt;https://www.databricks.com/product/pricing/product-pricing/instance-types&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;STRONG&gt;2. Is this information available through any Databricks APIs or system-level tables?&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Yes. You can use Databricks system tables to analyze DBU consumption:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Key Tables:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;system.billing.usage: Tracks DBU usage per workload, SKU, and time window. [learn.microsoft.com]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;system.compute.clusters: Contains cluster metadata including node types and configurations.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;system.compute.node_types: Maps node types to hardware specs (useful for correlating with DBU rates).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="python"&gt;SELECT 
  usage_date,
  sku_name,
  usage_quantity AS dbus_consumed,
  usage_metadata.cluster_id,
  usage_metadata.job_id
FROM system.billing.usage
WHERE usage_unit = 'DBU'
ORDER BY usage_date DESC; &lt;/LI-CODE&gt;&lt;P&gt;3. &lt;STRONG&gt;Has anyone built a similar cost model and can share tips or best practices?&lt;BR /&gt;Yes, Some of the best practices that I follow are:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Used job clusters + spot instances to reduce DBU and VM costs by up to 50%.&lt;/LI&gt;&lt;LI&gt;Tagged clusters with environment and workload type for granular cost attribution.&lt;/LI&gt;&lt;LI&gt;Use cluster policies to restrict high-cost instance types and enforce auto-termination.&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="python"&gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Oct 2025 13:49:27 GMT</pubDate>
    <dc:creator>nayan_wylde</dc:creator>
    <dc:date>2025-10-21T13:49:27Z</dc:date>
    <item>
      <title>How to Retrieve DBU Count per Compute Type for Accurate Cost Calculation?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-retrieve-dbu-count-per-compute-type-for-accurate-cost/m-p/135494#M50367</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;We are currently working on a cost analysis initiative to gain deeper insights into our Databricks usage. As part of this effort, we are trying to calculate the hourly cost of each Databricks compute instance by utilizing the Azure Retail Prices API and storing this data in a table for further analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;During this process, we encountered a challenge in accurately calculating the cost per compute type. After consulting with Azure Support, we understood that the total cost displayed on&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;U&gt;&lt;A class="" title="https://azure.microsoft.com/en-us/pricing/details/databricks/" href="https://azure.microsoft.com/en-us/pricing/details/databricks/" target="_blank" rel="noopener noreferrer"&gt;Azure Databricks Pricing Page&lt;/A&gt;&lt;/U&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;is composed of two components: the VM (infrastructure) cost and the DBU (Databricks Unit) cost.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;While we are able to determine the VM cost using the Azure API, we are unable to map the correct number of DBUs per compute type to complete the total cost calculation. We have not found a reliable way to determine the DBU count associated with each VM/compute type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My questions to the community:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Is there a &lt;STRONG&gt;documented way&lt;/STRONG&gt; to retrieve the DBU count per VM or compute type?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is this information &lt;STRONG&gt;available through any Databricks APIs&lt;/STRONG&gt; or system-level tables that we can query?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Has anyone built a similar cost model and can share tips or best practices?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any guidance or pointers would be really appreciated!&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Charan.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 09:15:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-retrieve-dbu-count-per-compute-type-for-accurate-cost/m-p/135494#M50367</guid>
      <dc:creator>saicharandeepb</dc:creator>
      <dc:date>2025-10-21T09:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to Retrieve DBU Count per Compute Type for Accurate Cost Calculation?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-retrieve-dbu-count-per-compute-type-for-accurate-cost/m-p/135499#M50368</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/170061"&gt;@saicharandeepb&lt;/a&gt;&amp;nbsp; have you looked at the system billing tables in Databricks yet?&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/admin/system-tables/billing" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/azure/databricks/admin/system-tables/billing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BS_THE_ANALYST_0-1761044017483.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20874i63D011CDDF29A448/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BS_THE_ANALYST_0-1761044017483.png" alt="BS_THE_ANALYST_0-1761044017483.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;There seems to be a field that can display the unit usage in DBU.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Same in this table aswell:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/admin/system-tables/pricing" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/admin/system-tables/pricing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BS_THE_ANALYST_1-1761044121224.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20875i61B221128E48FDB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BS_THE_ANALYST_1-1761044121224.png" alt="BS_THE_ANALYST_1-1761044121224.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;All the best,&lt;BR /&gt;BS&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 10:55:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-retrieve-dbu-count-per-compute-type-for-accurate-cost/m-p/135499#M50368</guid>
      <dc:creator>BS_THE_ANALYST</dc:creator>
      <dc:date>2025-10-21T10:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Retrieve DBU Count per Compute Type for Accurate Cost Calculation?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-retrieve-dbu-count-per-compute-type-for-accurate-cost/m-p/135513#M50371</link>
      <description>&lt;P&gt;The majority of the relevant information can be found in the system.billing.usage and system.compute.clusters tables.&lt;BR /&gt;To view DBUs by instance type or compute, you can run the following query and explore more of the fields in these tables&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;c.worker_node_type AS vm_instance,&lt;BR /&gt;SUM(u.usage_quantity) AS total_dbus&lt;BR /&gt;FROM&lt;BR /&gt;system.billing.usage u&lt;BR /&gt;JOIN&lt;BR /&gt;system.compute.clusters c&lt;BR /&gt;ON&lt;BR /&gt;u.usage_metadata.cluster_id = c.cluster_id&lt;BR /&gt;GROUP BY&lt;BR /&gt;c.worker_node_type&lt;BR /&gt;ORDER BY&lt;BR /&gt;total_dbus DESC;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 13:32:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-retrieve-dbu-count-per-compute-type-for-accurate-cost/m-p/135513#M50371</guid>
      <dc:creator>Chiran-Gajula</dc:creator>
      <dc:date>2025-10-21T13:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to Retrieve DBU Count per Compute Type for Accurate Cost Calculation?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-retrieve-dbu-count-per-compute-type-for-accurate-cost/m-p/135515#M50372</link>
      <description>&lt;P&gt;&lt;STRONG&gt;1. Is there a documented way to retrieve the DBU count per VM or compute type?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yes, but it's not directly exposed via a single API or table. The DBU consumption rate depends on:&lt;/P&gt;&lt;P&gt;Compute type (Jobs Compute, All-Purpose Compute, SQL Compute, etc.)&lt;BR /&gt;VM instance type (e.g., Standard_D16s_v3)&lt;BR /&gt;Databricks pricing tier (Standard, Premium, Enterprise)&lt;BR /&gt;Cloud provider (Azure, AWS, GCP)&lt;/P&gt;&lt;P&gt;Databricks provides DBU calculators and pricing matrices per cloud provider, which list DBU rates per instance type and workload type. For Azure, you can refer to the&amp;nbsp;&lt;A href="https://www.databricks.com/product/pricing/product-pricing/instance-types" target="_blank"&gt;https://www.databricks.com/product/pricing/product-pricing/instance-types&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;STRONG&gt;2. Is this information available through any Databricks APIs or system-level tables?&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Yes. You can use Databricks system tables to analyze DBU consumption:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Key Tables:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;system.billing.usage: Tracks DBU usage per workload, SKU, and time window. [learn.microsoft.com]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;system.compute.clusters: Contains cluster metadata including node types and configurations.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;system.compute.node_types: Maps node types to hardware specs (useful for correlating with DBU rates).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="python"&gt;SELECT 
  usage_date,
  sku_name,
  usage_quantity AS dbus_consumed,
  usage_metadata.cluster_id,
  usage_metadata.job_id
FROM system.billing.usage
WHERE usage_unit = 'DBU'
ORDER BY usage_date DESC; &lt;/LI-CODE&gt;&lt;P&gt;3. &lt;STRONG&gt;Has anyone built a similar cost model and can share tips or best practices?&lt;BR /&gt;Yes, Some of the best practices that I follow are:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Used job clusters + spot instances to reduce DBU and VM costs by up to 50%.&lt;/LI&gt;&lt;LI&gt;Tagged clusters with environment and workload type for granular cost attribution.&lt;/LI&gt;&lt;LI&gt;Use cluster policies to restrict high-cost instance types and enforce auto-termination.&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="python"&gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 13:49:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-retrieve-dbu-count-per-compute-type-for-accurate-cost/m-p/135515#M50372</guid>
      <dc:creator>nayan_wylde</dc:creator>
      <dc:date>2025-10-21T13:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Retrieve DBU Count per Compute Type for Accurate Cost Calculation?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-retrieve-dbu-count-per-compute-type-for-accurate-cost/m-p/135790#M50432</link>
      <description>&lt;P&gt;Hi everyone, just to clarify my question — I’m &lt;STRONG&gt;looking for the DBU count per compute type (per instance type)&lt;/STRONG&gt;, not the &lt;STRONG&gt;total DBU consumption per workload&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;In other words, I want to know the &lt;STRONG&gt;fixed DBU rate assigned to each compute SKU&lt;/STRONG&gt; (for example, DS3 v2 = 0.75 DBU/hour, DS4 v2 = 1.5 DBU/hour, DS5 v2 = 3.0 DBU/hour, etc.) so that I can accurately estimate costs for different cluster configurations.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saicharandeepb_0-1761200133677.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20976i4185DFDC7466DADB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="saicharandeepb_0-1761200133677.png" alt="saicharandeepb_0-1761200133677.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m &lt;EM&gt;not&lt;/EM&gt; referring to usage or billing metrics that show total DBUs consumed by workloads over time — I just need the reference values that define how many DBUs are billed per hour for each compute type.&lt;/P&gt;&lt;P&gt;Thanks in advance for any guidance.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 06:17:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-retrieve-dbu-count-per-compute-type-for-accurate-cost/m-p/135790#M50432</guid>
      <dc:creator>saicharandeepb</dc:creator>
      <dc:date>2025-10-23T06:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to Retrieve DBU Count per Compute Type for Accurate Cost Calculation?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-retrieve-dbu-count-per-compute-type-for-accurate-cost/m-p/139829#M51307</link>
      <description>&lt;P&gt;Databricks doesn’t expose a “DBU/hour per node type” lookup in system tables, but you can derive it empirically by dividing total DBUs recorded in the &lt;STRONG&gt;billable usage system table&lt;/STRONG&gt; by total node runtime from the &lt;STRONG&gt;compute node timeline&lt;/STRONG&gt; for each instance type. This gives you the effective DBU/hour per node type for your environment and SKU.&lt;/P&gt;
&lt;DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;LI-CODE lang="python"&gt;WITH node_minutes AS (
SELECT
node_type,
COUNT(*) AS minutes -- node_timeline is per-minute records
FROM system.compute.node_timeline
GROUP BY node_type
),

dbu_by_node AS (
SELECT
u.usage_metadata.node_type AS node_type,
u.sku_name,
SUM(u.usage_quantity) AS dbus
FROM system.billing.usage AS u
WHERE u.usage_unit = 'DBU'
AND u.usage_metadata.node_type IS NOT NULL
GROUP BY ALL
)

SELECT
d.node_type,
d.sku_name,
d.dbus,
m.minutes,
d.dbus / (m.minutes / 60.0) AS dbu_per_node_hour
FROM dbu_by_node d
JOIN node_minutes m USING (node_type)
ORDER BY dbu_per_node_hour DESC;&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 18:10:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-retrieve-dbu-count-per-compute-type-for-accurate-cost/m-p/139829#M51307</guid>
      <dc:creator>yogeshsingh</dc:creator>
      <dc:date>2025-11-20T18:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Retrieve DBU Count per Compute Type for Accurate Cost Calculation?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-retrieve-dbu-count-per-compute-type-for-accurate-cost/m-p/139890#M51315</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You can also take a look at this built-in cost control dashboard explained in the below video or official databricks documentation at&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/admin/usage/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.databricks.com/aws/en/admin/usage/&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;. Concerning the dashboard, relevant subject for me was you can inspect all the underlying system tables by accessing to que internal data model and queries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F7BGOt46NNUQ%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D7BGOt46NNUQ&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F7BGOt46NNUQ%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="400" height="225" scrolling="no" title="💰 Control Your Databricks Costs with AI &amp;amp; BI Dashboards 🚀 | Step-by-Step Guide" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 08:51:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-retrieve-dbu-count-per-compute-type-for-accurate-cost/m-p/139890#M51315</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-11-21T08:51:57Z</dc:date>
    </item>
  </channel>
</rss>

