Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
Databricks Cost
Databricks Cost breaks down what you're spending on Databricks and the underlying cloud vendor, so you can see where costs are concentrated and act on it.
Filters
The Data Source Filter lets you switch between connected Databricks accounts or projects.
Overview
Overall Summary shows three totals for the selected time period:
Total Cost — Databricks cost plus vendor cost.
Databricks Cost — cost from Databricks resources.
Cloud Provider Cost — cost from vendor resources.
Overall Cost Trend plots Databricks Cost, Cloud Vendor Cost, and Total Spend over the selected time period, so you can spot when costs spiked or dropped and correlate it with a specific date.
Cost by Cluster Type
This section breaks Databricks cost down by cluster type.
Cost Over Time shows daily cost trends for four cluster types: All Purpose, DLT, Job Cluster, and Others.
Cluster Cost by Type is a donut chart summarizing total cost per cluster type, color-matched to the Cost Over Time lines, showing at a glance which type contributes most to spend.
Top 5 Cluster Cost lists the five most expensive clusters in the selected period, labeled by Cluster ID, so you know exactly where to focus optimization efforts.
Cost by Vendor Service
This section breaks vendor cost down by service type: Bandwidth, Storage, Virtual Machines, and Virtual Network.
Cost Over Time shows daily cost trends for each service.
Cloud Vendor Cost is a donut chart summarizing total vendor cost by service type, color-matched to the Cost Over Time lines.
Top 5 Instance Cost lists the five most expensive instances by vendor cost, labeled by instance type.
Azure Databricks Cost Retrieval Methods
ADOC supports two ways to retrieve Databricks and cloud vendor cost data from Azure: the API Method and the Data Export Method.
API method
The API method queries Azure's Cost Management API directly, giving you cost data that matches the Azure Portal in near real time. It's the preferred method where available.
Set up a service principal in Azure, assign it the required roles, and configure ADOC to query the Cost Management API for both Databricks and cloud vendor costs.
Example request to fetch Databricks cost (replace all IDs, secrets, and tokens with your own — the values below are placeholders):
Fetching cloud vendor cost uses the same endpoint without the ServiceName filter, so results aren't restricted to Databricks.
Data export method
The Data Export method schedules a cost data export from Azure to Blob Storage, which ADOC then reads. It's useful for large volumes of data, though it can introduce minor data mismatches.
Set up the export for Databricks and cloud vendor costs:
In the Azure Portal, go to the resource group where your Databricks instance is deployed.
Navigate to Cost Management > Cost Analysis and select Download.
In the side pane, select CSV as the format, then select View all exports.
Select Create, choose Daily export for month-to-date costs, and confirm.
Repeat for the Managed Resource Group to export cloud vendor costs.
Create a service principal to access the export:
In Microsoft Entra ID > App Registrations, select New Registration and register the application.
Under Certificates & Secrets, create a new client secret and store the value securely — it's shown only once.
Assign the service principal Reader and Storage Blob Data Reader roles on the storage account holding the export files.
Configure ADOC to use the exported data:
Navigate to Register and either add a new data source or select Edit Configuration on an existing one.
Set Cost Fetch Method to Data Export method.
Enter the Azure Tenant ID, Subscription ID, Client ID, and Client Secret for the service principal.
Enter the Azure Resource Group and Managed Resource Group for the Databricks workspace.
Save the configuration.
Known limitations
Limitation | Detail |
|---|---|
System time requirement | Set your system time to UTC so ADOC's cost figures align exactly with the Azure Portal. |
Job Studio filter count mismatch | Filter facet counts on Job Studio may differ slightly from the Databricks Job Runs page, due to differing update frequencies. |
Cloud vendor cost calculation timing | Cloud Vendor cost can differ from the Azure Portal by up to 0.5%, since Azure's cost calculations take 24–48 hours to fully update. |
Initial data availability | After enabling the API method, cost data for the last 30 days can take up to 24 hours to populate. |
All Purpose Cluster cost display | Costs are aggregated daily. Date ranges of 24 hours or less may not show cost data. |
Additional resources
What's next
Databricks Compute – Cross-reference cost against cluster and job activity.
Databricks Query Studio – Identify which specific queries are driving cost.
For additional help, contact www.acceldata.force.com OR call our service desk +1 844 9433282
Copyright © 2025