<?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 How to find the billing of each cell in a notebook? in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/how-to-find-the-billing-of-each-cell-in-a-notebook/m-p/106888#M2829</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Suppose I have run ten different statements/tasks/cells in a notebook, and I want to know how many DBUs each of these ten tasks used. Is this possible?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2025 10:12:17 GMT</pubDate>
    <dc:creator>jyunnko</dc:creator>
    <dc:date>2025-01-24T10:12:17Z</dc:date>
    <item>
      <title>How to find the billing of each cell in a notebook?</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-find-the-billing-of-each-cell-in-a-notebook/m-p/106888#M2829</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Suppose I have run ten different statements/tasks/cells in a notebook, and I want to know how many DBUs each of these ten tasks used. Is this possible?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 10:12:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-find-the-billing-of-each-cell-in-a-notebook/m-p/106888#M2829</guid>
      <dc:creator>jyunnko</dc:creator>
      <dc:date>2025-01-24T10:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the billing of each cell in a notebook?</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-find-the-billing-of-each-cell-in-a-notebook/m-p/106889#M2830</link>
      <description>&lt;P class=""&gt;Hey,&lt;BR /&gt;&lt;BR /&gt;I really think this it’s &lt;STRONG&gt;not&lt;/STRONG&gt; possible to directly determine the cost of a single cell in Databricks.&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;However, you can approach this in two ways, depending on the type of cluster you’re using, as different cluster types have different pricing models:&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Using the cluster cost:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;For &lt;STRONG&gt;all-purpose (interactive) clusters&lt;/STRONG&gt;, Databricks charges per DBU/hour based on the instance type and autoscaling settings. You can estimate the cost by looking at how long the cluster was running while the cell was being executed and then calculating the cost based on the DBU rate.&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;For &lt;STRONG&gt;job clusters&lt;/STRONG&gt;, costs are usually lower since you’re only charged for the duration of the job. If you’re using this type of cluster, you can break down the total cost based on the runtime of the job that includes the cell.&lt;/P&gt;&lt;P class=""&gt;For &lt;STRONG&gt;serverless clusters&lt;/STRONG&gt;, the cost is based on dynamically allocated resources, making it a bit trickier to estimate costs accurately. In this case, checking execution logs and usage metrics could help provide better insights.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.databricks.com/product/pricing/product-pricing/instance-types" target="_self"&gt;Pricing calculator&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Running the notebook as a job with System Tables enabled:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;If you run your notebook as a job and have &lt;STRONG&gt;System Tables&lt;/STRONG&gt; enabled, you can query the &lt;SPAN class=""&gt;system.jobs_run_cost&lt;/SPAN&gt; table to get the total cost of the job.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you find this answer helpful, feel free to mark it as resolved or give it a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="lia-unicode-emoji"&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN&gt;!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-unicode-emoji"&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 10:54:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-find-the-billing-of-each-cell-in-a-notebook/m-p/106889#M2830</guid>
      <dc:creator>Isi</dc:creator>
      <dc:date>2025-01-24T10:54:01Z</dc:date>
    </item>
  </channel>
</rss>

