> For the complete documentation index, see [llms.txt](https://docs.quper.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.quper.co/integrations/data-warehouses-and-platforms/databricks.md). Agents can also search and read this documentation through its [MCP server](https://docs.quper.co/~gitbook/mcp).

# Connect to Databricks

Connect your Databricks workspace to Quper to track cluster and job costs.

Quper connects to Databricks via a Personal Access Token and tracks cluster spend, job costs, DBU consumption, and idle compute — so your data engineering teams have full visibility into what every pipeline and notebook is costing.

## What Quper tracks from Databricks

* Cluster-level DBU (Databricks Unit) consumption and dollar cost
* Job run costs — spend per job, run, and task
* Interactive cluster vs. job cluster cost split
* Idle cluster time and auto-termination gaps
* Cost breakdown by workspace, cluster policy, and team tag
* Spot vs. on-demand instance cost attribution

## Before you begin

* You must have **workspace admin** access to create a service principal or personal access token
* Quper supports connecting **multiple Databricks workspaces** — repeat this process for each workspace

## Connection steps

{% stepper %}
{% step %}
**Go to Settings → Integrations**

In your Quper workspace, navigate to **Settings → Integrations** and click **Add Integration → Databricks**.
{% endstep %}

{% step %}
**Create a Personal Access Token**

In your Databricks workspace, go to **User Settings → Access Tokens** and click **Generate New Token**:

* Comment: `Quper read-only access`
* Lifetime: 365 days (recommended — rotate annually)
* Click **Generate**

Copy the token value — Databricks will not show it again.
{% endstep %}

{% step %}
**Enter credentials in Quper**

Back in Quper, enter:

* **Workspace URL** — your Databricks workspace URL (e.g. `https://dbc-abc12345-6789.cloud.databricks.com`)
* **Access Token** — the token you generated above
* **Cloud Provider** — the cloud platform your Databricks workspace runs on (AWS, GCP, or Azure)

Click **Connect**. Quper verifies the token and begins ingesting cluster and job cost data.
{% endstep %}
{% endstepper %}

## Limitations

* Quper reads cluster and job cost data via the Databricks REST API and System Tables. System Tables must be enabled in your workspace for full query-level attribution.
* Cost data for job runs is available after the run completes. In-progress jobs appear in usage data but final cost is confirmed on completion.
* Quper does not support Databricks on-premises deployments.

## Enabling System Tables (recommended)

Databricks System Tables provide the most granular cost and usage data. To enable them:

1. In your Databricks workspace, go to **Catalog → System** (requires Unity Catalog)
2. Enable the `system.billing`, `system.compute`, and `system.lakeflow` schemas
3. Grant the Quper service principal `SELECT` access on these schemas

{% hint style="info" %}
System Tables require **Unity Catalog**. If your workspace does not have Unity Catalog enabled, Quper will fall back to the Cluster Events API and Jobs API for cost data, which provides less granularity.
{% endhint %}

## Troubleshooting

**Token authentication fails** Verify the workspace URL does not have a trailing slash and matches the URL you use to access Databricks in your browser.

**Job costs not appearing** Ensure the Quper token has at least `CAN_VIEW` permission on the jobs and clusters you want to track. Quper cannot see job runs it doesn't have permission to list.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.quper.co/integrations/data-warehouses-and-platforms/databricks.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
