Skip to main content

Connect to ClickHouse

This guide explains how to connect your ClickHouse database (Self-hosted or Cloud) to Holistics.

Prerequisites

Before connecting, ensure you have the following:

  • Permissions: You must be an Admin in Holistics to add new Data Sources.
  • Network Access: Your ClickHouse server must be accessible from Holistics' IP addresses.
  • Database User: We recommend creating a dedicated, read-only user for Holistics rather than using an admin account.

The dedicated user requires SELECT privileges on the tables you wish to query, as well as the system tables (for schema detection).

-- Example: Grant read access to a specific database
GRANT SELECT ON my_database.* TO holistics_user;

-- Grant access to system metadata
GRANT SELECT ON system.* TO holistics_user;

Step 1: Gather Connection Details

To connect to ClickHouse with HTTP(S) you will need this information:

ParameterDescription
HostThe hostname of your ClickHouse server (e.g., mz322.eu-central-1.aws.clickhouse.cloud).
Port8443 for ClickHouse Cloud (SSL/TLS). 8123 for self-managed instances without SSL.
Database NameThe name of the database you want to connect to. The default is usually default.
UsernameThe database user. The default is default.
PasswordThe password for the database user.
ClickHouse Cloud Users

You can find these details by clicking the Connect button in your ClickHouse Cloud console and selecting HTTPS.

Location of the Connect button in the ClickHouse Cloud console

Step 2: Configure Network Access

Since Holistics is a cloud-based application, our servers must be able to reach your database. You have two options:

  1. Direct Connection (Recommended): Allowlist Holistics' IP addresses in your firewall or ClickHouse Cloud IP Access List. You can find our list of IPs in the IP Whitelisting guide.

Example of IP allowlisting in ClickHouse Cloud

  1. Reverse SSH Tunnel: If your database is in a private network (VPC) and cannot be exposed publicly, use a Reverse SSH Tunnel.

Step 3: Add Data Source in Holistics

  1. In Holistics, go to Settings → Data Sources.

Navigating to Data Sources in Holistics settings

  1. Click New Data Source and select ClickHouse.

Selecting ClickHouse from the list of new data sources

  1. Fill in the form with the details gathered in Step 1.

    FieldSetting
    HostYour ClickHouse Hostname
    Port8443 (or 8123)
    Require SSLToggle ON if using port 8443 (Required for ClickHouse Cloud).
    Database Namedefault (or your specific DB)

Filling in ClickHouse connection details in Holistics

  1. Click Test Connection.

If:

Known Limitations

Holistics supports most standard SQL features in ClickHouse, with the following exceptions:

  • Running Total: This analytic function currently has limited support on ClickHouse.
  • Nested Data Types: Deeply nested JSON or Array structures may require flattening via SQL models before visualization.

For a full list of supported features, please refer to our Database-specific Limitations page.


Let us know what you think about this document :)