Databricks
This guide sets up the Databricks connector using an account-level service principal with OAuth machine-to-machine (M2M) authentication. The Databricks connector brings your Databricks account into Datalogz Control Tower: workspaces, Unity Catalog assets, lineage, dashboards, and Genie agents, including how people actually use those agents.
Datalogz reads metadata only: names, owners, structure, lineage and usage of your Databricks assets. It never reads the data inside your tables, and it makes no changes to your Databricks account.
Before you begin
You need people with these roles in Databricks:
Account admin, to create the service principal and give it the account admin role
Workspace admin on each workspace you want monitored, to assign the service principal
Unity Catalog should be enabled on the workspaces you want monitored.
In the SQL below, replace <application-id> with the service principal's Client ID (Application ID).
Step 1: Create a service principal in Databricks
Sign in to the Databricks account console for your cloud:
CloudAccount consoleAWS
https://accounts.cloud.databricks.comAzure
https://accounts.azuredatabricks.netGoogle Cloud
https://accounts.gcp.databricks.comGo to User management > Service principals > Add service principal. Give it a recognizable name, for example
datalogz-control-tower.Open the service principal, go to Roles and turn on Account admin.
Open Credentials & secrets (OAuth secrets) and click Generate secret.
Copy the Client ID and the Secret straight away. Databricks shows the secret only once.
Note your Account ID. You'll find it in the account menu at the top right of the account console.
OAuth secrets have an expiry date, which you set when you generate them. Rotate the secret before it expires.
Step 2: Add the service principal to your Databricks workspace
Datalogz discovers every workspace in your account and syncs the ones the service principal can access.
In the account console, go to Workspaces, select a workspace, then Permissions > Add permissions. Add the service principal with the User role.
In the workspace's admin settings (Identity and access > Service principals), confirm the service principal has the Admin access, Databrics SQL access, Workspace access and consumer access entitlements.
Repeat for every workspace you want monitored.

Step 3: Grant Unity Catalog read access
Run this in a SQL editor as a metastore admin or catalog owner, once for each catalog you want monitored:
Catalogs without this grant don't appear in Control Tower. New catalogs only show up once they've been granted, so add this grant to your process for creating catalogs.
Step 4: Enable lineage (system tables and a SQL warehouse)
Lineage is read from Databricks system tables using a SQL warehouse. A SQL warehouse is not needed for the rest of the inventory.
Make sure the
system.accesssystem schema is enabled on each metastore. You can check in Catalog Explorer under the system catalog.Grant read access to the lineage and audit tables:
In each workspace, open SQL Warehouses, select a warehouse, open Permissions and give the service principal Can use. We recommend creating a small, dedicated serverless warehouse for Datalogz and granting Can use on that one only.
Step 5: Dashboards and notebooks
AI/BI dashboards: share the dashboards, or the folders that contain them, with the service principal at Can view.
Notebooks: give the service principal Can read on the folders you want inventoried, for example
/Workspace/Sharedand/Workspace/Users.
Step 6: Genie agents
Genie agents have their own access lists. The service principal only sees agents it has been granted access to, and workspace admin doesn't override this.
Add the service principal to a group, for example
datalogz-readers.Share your Genie agents with that group at Can view. This brings the agents into Control Tower: owner, warehouse, grounding tables, instructions, sample questions and access list.
Optional, conversation content: to collect questions, generated SQL and answers from all users, grant the group Can manage on the agents and turn on Enable Genie conversation content in Control Tower (Step 7). With only Can view, Databricks returns just the service principal's own conversations, so agents look unused.
On the first sync, Datalogz collects Genie conversations from the last 30 days. After that, it only collects what changed. To collect older history, contact support@datalogz.io.
Step 7: Create the connector in Control Tower
In Control Tower, go to Settings > Connectors > BI Connectors and click New Connector.
In Select a BI platform, choose Databricks.
Enter:
Cloud: choose AWS, Azure or Google Cloud. Each option shows its account console host; pick the one you signed in to in Step 1.
Account ID
Client ID and Client Secret from Step 1
Click Connect. Control Tower checks the credentials and the account admin role.
Review the Workspace Preflight. It lists every workspace Datalogz discovered, with its system schema status and the number of catalogs the service principal can access. Warnings here don't block setup: you can fix them later using the troubleshooting table.
Enter a Connector Name and choose the Asset Snapshots schedule: every day or every week, at a time you choose.
Optionally, turn on Enable Genie conversation content (see Step 6).
Click Next, review the summary, then click Confirm and Finish.
The first sync of a large estate can take a while, especially for workspaces with tens of thousands of notebooks. If a very large workspace can't be fully inventoried within one sync, Datalogz loads what it collected and marks that workspace as incomplete.
Last updated