Skip to main content

General

Export to ClickHouse

High-performance export to ClickHouse using Async Inserts, LZ4 compression, and local buffering.

ClickHouse is the default telemetry store in Proxus. This connector is also used for outbound exports when you want to route telemetry copies to a ClickHouse target.

info
Storage vs Export

Telemetry storage uses the DeviceRawData table in ClickHouse. Outbound DB connectors write to ProxusDeviceData in the target database.

open_in_new

Official Documentation

Learn more at clickhouse.com

Configuration Parameters

ParameterRequiredTypeDefaultDescription
HostNostringlocalhostThe hostname or IP of the ClickHouse server.
PortNoint8123The HTTP Interface port (Not the native 9000 port).
UsernameNostringdefaultDatabase authentication username.
PasswordNostring(empty)Database authentication password.
DatabaseNostringproxusThe target database name.
TableNostringDeviceRawDataThe target table name for telemetry ingestion.
WriteIntervalSecondsNoint1Micro-batch flushing interval. Lower = Real-time, Higher = Better
Compression.
TTLExpressionNostring-TTL for the telemetry table (e.g., toDateTime(Time) + INTERVAL 1 YEAR).
LogTTLExpressionNostring-TTL for the Logs table.

Internal Behavior

Resilience (Store & Forward)

If ClickHouse is unreachable:

  1. Telemetry is buffered in the NATS JetStream outbox stream.
  2. The connector continuously retries the connection.
  3. Once online, outbox batches are drained into ClickHouse.

Performance Features

  • Async Inserts: Uses ClickHouse's native async insert capability.
  • Compression: Data is serialized using RowBinary format with LZ4 compression.
  • Partitioning: If Proxus creates the table, it partitions by month (toYYYYMM(Time)).

Tables Created

  • Telemetry: DeviceRawData
  • Logs: Logs
  • Metrics: DeviceMetrics