Skip to main content
Connect Kubit directly to ClickHouse so it queries your data in place. You create a dedicated user, roles and database for Kubit, grant read-only access to the tables it should see and allow Kubit’s IP ranges. Nothing is copied out of your account.

Before you start

  • A ClickHouse user that can create users, roles and databases and grant privileges.
  • The tables or views Kubit should query.
  • A password for the Kubit user. The Kubit team generates a strong one and shares it with you.

Steps

1

Create a user

In the SQL Console, create a user named KUBIT. The Kubit team generates and shares a strong password to use here.
2

Create roles

Create a read role and a write role.
3

Create a database

Create a database named KUBIT_DB. Kubit uses it for small auxiliary tables and views.
4

Grant permissions

Grant KUBIT_W read and write access to KUBIT_DB so Kubit can create its auxiliary objects.
Grant KUBIT_R read-only (SELECT) access to KUBIT_DB and the tables or views Kubit should query.
5

Allow Kubit's IP ranges

Add Kubit’s IP ranges to your ClickHouse IP filters.
ClickHouse Cloud Service Settings page with Settings highlighted in the left nav and the IP access list link reading 1 specific location highlighted under Security.
ClickHouse Cloud IP Access List panel with Specific locations selected and the Add new IP button highlighted above the IP address or CIDR and Description fields.
6

Split test and production workloads (optional)

As a best practice, create a second user, roles and service for development. Isolating development from production avoids accidental impact on live workloads.
7

Setting up the connection in Kubit

When configuring the JDBC URL in Kubit you will need to pass on the &compress=0 parameter.
ClickHouse Connection setup form

Connection parameters

If it fails

Next steps