Skip to content

ClickHouse (Source)

Install

See the Install guide for the full setup, including Windows PowerShell.

curl -fsSL https://install.skippr.io/install.sh | shClick to copy

Reads from ClickHouse via the HTTP API.

Configuration

yaml
source:
  kind: clickhouse_source
  url: http://localhost:8123
  database: default
  user: default
  password: ${CLICKHOUSE_PASSWORD}
  tables:
    - events
FieldDefaultDescription
urlhttp://localhost:8123ClickHouse HTTP URL
databaseDatabase name
userdefaultUsername
passwordPassword
tables(optional)Tables to extract
queryCustom SQL query (overrides tables)

Namespace: clickhouse.{database}.{table}

CLI

bash
skippr connect source clickhouse-source \
  --url http://localhost:8123 \
  --database default \
  --user default \
  --tables events,metrics
FlagDescription
--urlHTTP interface URL
--databaseDatabase name
--userUsername
--passwordPassword
--tablesComma-separated list of tables
--querySQL query instead of table list

Authentication

Use the configured ClickHouse user and password, or rely on the default local user for development. For security best practices, we strongly advise against storing the password in skippr.yaml. Use environment variable interpolation instead: replace the password value with your own ${ENV_VAR} reference.

The relevant part of skippr.yaml looks like this:

yaml
source:
  kind: clickhouse_source
  password: ${CLICKHOUSE_PASSWORD}

Set the env var before running skippr:

macOS / Linux

bash
export CLICKHOUSE_PASSWORD="secret"

Windows PowerShell

powershell
$env:CLICKHOUSE_PASSWORD = "secret"

Windows Command Prompt

cmd
set CLICKHOUSE_PASSWORD=secret

Permissions or Network Requirements

The ClickHouse user needs read access to the selected database and tables, and the runner must be able to reach the ClickHouse HTTP endpoint.

Troubleshooting

SymptomFix
authentication failedVerify the ClickHouse user, password, and database name.
connection refusedCheck the HTTP URL, port, and network access to the ClickHouse endpoint.

Next steps

Install

See the Install guide for the full setup, including Windows PowerShell.

curl -fsSL https://install.skippr.io/install.sh | shClick to copy