Prerequisites
- A running ClickHouse instance (self-hosted or ClickHouse Cloud)
- Admin access to create users and grant privileges
- A Rocketgraph account — sign up here
1. Create a read-only user
Connect to your ClickHouse instance and run the following SQL:your_database with the database(s) you want Rocketgraph to access. Repeat the GRANT statement for each additional database.
Using
HOST ANY is convenient but you can restrict it to Rocketgraph’s IP ranges for tighter security. Contact support for the current egress IPs.2. Allow external connections (self-hosted only)
If you are running ClickHouse yourself, ensure the HTTP or native interface is accessible from outside your network and that your firewall allows inbound traffic on the relevant port (default8123 for HTTP, 9000 for native TCP).
ClickHouse Cloud instances are accessible by default — skip this step.
3. Add ClickHouse as a datasource in Rocketgraph
- Log in to Rocketgraph
- Navigate to the Datasources tab
- Click Add datasource and select ClickHouse
- Enter your:
- Host (e.g.
my-instance.clickhouse.cloudor your server IP) - Port (default
8443for HTTPS,8123for HTTP) - Database
- Username —
rocketgraph_readonly - Password
- Host (e.g.
- Click Save — Rocketgraph will verify the connection