Databricks Compute Cost Overview
by Tableau
Description
Unlock the full potential of your Databricks investment with our Tableau-powered dashboard, designed to provide data teams with a comprehensive, easy-to-understand visualisation of their Databricks spending. This intuitive Accelerator delivers real-time insights and granular analytics, enabling informed decision-making and strategic cost management. With secure data integration and customisable features, it's the perfect solution for maintaining financial control and driving efficiency in your Databricks environment.
Answer Key Business Questions
- What is my quarterly and monthly spend in $USD and DBUs (Databricks Unit)?
- Which of my workspaces are driving the most consumption?
- What time of day is driving the most consumption of my Databricks resources?
Monitoring and Improving KPIs
- Quarterly Databricks account spend
- Monthly Databricks account spend
- Cost per SKU
- Cost by Day of Week & Time
Connect to your Databricks data to enable this Accelerator
Databricks prerequisite
- You must have the system tables enabled to use this dashboard. (Databricks documentation)
Tableau configuration
- You will need to use Tableau Desktop to replace the sample data with an extract of your own data, but you can either connect to your own data in Tableau Server/Cloud or directly in Desktop.
Option 1: Create a published data source in Tableau Server or Tableau Cloud
- In the Explore tab, select the New drop-down and select Data Source.
- Select Databricks as your connection
- Enter your credentials and create a relationship between the
system.billing.usage table
and thesystem.billing.list_prices
table. - Edit the relationship noodle to match the fields shown in the screenshot.
- For the Usage Start Time equivalent in
list_prices
, click the drop-down menu and select Create relationship calculation. Use the syntax from the screenshot –IFNULL([Price End Time], DATE("1/1/3000"))
.
- For the Usage Start Time equivalent in
- Publish this data source as an extract on your site.
- Open the accelerator workbook in Tableau Desktop.
- Create a new data source by clicking on the top menu Data > New Data Source and select Tableau Server as your data source.
- Connect to the new extract you generated.
- In the top menu, select Data > Replace Data Source and replace the sample data with the new source you created.
Option 2: Create your Databricks connection locally in Tableau Desktop
- Open the accelerator workbook in Tableau Desktop.
- Create a new data source by clicking on the top menu Data > New Data Source.
- Select Databricks as the data source. Install the driver if you haven't done so previously.
- Enter your credentials and create a relationship between the
system.billing.usage table
and thesystem.billing.list_prices
table. - Edit the relationship noodle to match the fields shown in the screenshot. For the Usage Start Time equivalent in
list_prices
, click the drop-down menu and select Create relationship calculation. Use the syntax from the screenshot –IFNULL([Price End Time], DATE("1/1/3000"))
. - Select the Extract radio button on the Data Source page
- In the top menu, select Data > Replace Data Source and replace the sample data with the new data source you just generated.