Before you start
- Workspace admin rights in Databricks, to create a SQL warehouse and a service principal
- The catalog and schema that hold the views Kubit should query
- If your workspace has IP access lists, Kubit’s IP ranges. See Allow Kubit’s IP ranges.
Steps
Create a SQL warehouse
Create a Serverless SQL warehouse for Kubit. Start with the smallest size and the settings in Warehouse configuration.
Create a service principal
Create a service principal for Kubit and give it three permissions:
With Unity Catalog, the read grants look like this. Replace the names in angle brackets.
Verify
Check the grants in a Databricks SQL editor. The output listsUSE SCHEMA and SELECT for the Kubit service principal.
Best practices
Partitioning
Partition fact tables by an event date column. Partitions make Kubit’s queries faster and cheaper, since most reports filter on a date range. If your tables are already partitioned by year, month and day, Kubit uses those columns and you don’t need a separate date column.Warehouse configuration
Four warehouse settings affect Kubit’s cost and speed. Databricks’ SQL warehouse sizing, scaling and queuing reference has the details.Usage monitoring
Databricks’ monitoring tools show what Kubit’s queries cost:- Monitor a SQL warehouse
- Monitor usage in the account console
- Cost attribution queries on system tables
- The query history system table
Next steps
- Bring your own warehouse: how Kubit queries your warehouse in place.
- Allow Kubit’s IP ranges: let Kubit through an IP access list.
