Files
genai-toolbox/docs/en/resources/sources/clickhouse.md
Yuan Teoh 735cb760ea docs: update long lines and tables (#1952)
Update long lines and tables formatting in markdown doc files.
2025-11-14 20:25:49 +00:00

3.2 KiB

title, type, weight, description
title type weight description
ClickHouse docs 1 ClickHouse is an open-source, OLTP database.

About

ClickHouse is a fast, open-source, column-oriented database

Available Tools

Requirements

Database User

This source uses standard ClickHouse authentication. You will need to create a ClickHouse user (or with ClickHouse Cloud) to connect to the database with. The user should have appropriate permissions for the operations you plan to perform.

Network Access

ClickHouse supports multiple protocols:

  • HTTPS protocol (default port 8443) - Secure HTTP access (default)
  • HTTP protocol (default port 8123) - Good for web-based access

Example

Secure Connection Example

sources:
    secure-clickhouse-source:
        kind: clickhouse
        host: clickhouse.example.com
        port: "8443"
        database: analytics
        user: ${CLICKHOUSE_USER}
        password: ${CLICKHOUSE_PASSWORD}
        protocol: https
        secure: true

HTTP Protocol Example

sources:
    http-clickhouse-source:
        kind: clickhouse
        host: localhost
        port: "8123"
        database: logs
        user: ${CLICKHOUSE_USER}
        password: ${CLICKHOUSE_PASSWORD}
        protocol: http
        secure: false

{{< notice tip >}} Use environment variable replacement with the format ${ENV_NAME} instead of hardcoding your secrets into the configuration file. {{< /notice >}}

Reference

field type required description
kind string true Must be "clickhouse".
host string true IP address or hostname to connect to (e.g. "127.0.0.1" or "clickhouse.example.com")
port string true Port to connect to (e.g. "8443" for HTTPS, "8123" for HTTP)
database string true Name of the ClickHouse database to connect to (e.g. "my_database").
user string true Name of the ClickHouse user to connect as (e.g. "analytics_user").
password string false Password of the ClickHouse user (e.g. "my-password").
protocol string false Connection protocol: "https" (default) or "http".
secure boolean false Whether to use a secure connection (TLS). Default: false.