Onboard Databricks to CloudHiro cost optimization platform

To onboard your Databricks environment, we require the following access and configuration. Please read until the end before you start.

Azure Databricks onboarding

Service Principal Access

Please grant our Costi service principal access to your Databricks account.

1

In your Databricks account console, navigate to User management → Service principals and add the Costi service principal provided by CloudHiro.

2

Make sure the service principal is granted account-level access so it can be assigned to workspaces and Unity Catalog.

System Tables Permissions

Assign full SELECT permissions to the Costi service principal on the following Unity Catalog System Tables:

system.billing.usage
system.compute.clusters
system.compute.node_timeline
system.compute.warehouses
system.query.history

Example SQL to grant access (run from a SQL Warehouse or notebook):

GRANT USE CATALOG ON CATALOG system TO `costi-service-principal`;
GRANT USE SCHEMA ON SCHEMA system.billing  TO `costi-service-principal`;
GRANT USE SCHEMA ON SCHEMA system.compute  TO `costi-service-principal`;
GRANT USE SCHEMA ON SCHEMA system.query    TO `costi-service-principal`;

GRANT SELECT ON TABLE system.billing.usage          TO `costi-service-principal`;
GRANT SELECT ON TABLE system.compute.clusters       TO `costi-service-principal`;
GRANT SELECT ON TABLE system.compute.node_timeline  TO `costi-service-principal`;
GRANT SELECT ON TABLE system.compute.warehouses     TO `costi-service-principal`;
GRANT SELECT ON TABLE system.query.history          TO `costi-service-principal`;

Note

The relevant system schemas must be enabled at the account level. See the Databricks System Tables documentation for instructions on enabling each schema.

Workspace Access

Assign the Costi service principal to a designated workspace where it has permissions to connect to a SQL Warehouse to execute the queries against these tables.

1

In the account console, open Workspaces → [your workspace] → Permissions and add the Costi service principal as a workspace user.

2

Create or pick a SQL Warehouse the service principal will use. In the warehouse Permissions tab, grant the service principal Can use access.

3

Share the following with CloudHiro to complete the connection:

  • Databricks account ID
  • Workspace URL (e.g. https://<workspace>.cloud.databricks.com)
  • SQL Warehouse HTTP path
AWS Databricks and Isolated Databricks instructions

Please contact CloudHiro's CSM for more information.

That's it!

We are done setting up. You can now ask your partner for a tour of CloudHiro and the CloudHiro visualizer.

Azure Onboarding

Get Started

AWS Onboarding

Get Started

Datadog Onboarding

Get Started