Pre-requisites
- A ClickHouse deployment that is reachable from the public internet — ClickHouse Cloud, or a self-hosted instance with a publicly exposed endpoint. Instances that are only reachable inside a private network (VPC peering, PrivateLink, SSH tunnels) are not supported.
- TLS is required. Alguna connects over the ClickHouse native protocol with TLS (typically port
9440). Plaintext connections are refused. - A database user for Alguna with
SELECTpermission on the source table or view.
How it works
- On a nightly schedule, Alguna connects to your ClickHouse and runs a
SELECTover the configured table, ordered by your state field. - Only rows with a state-field value strictly greater than the last successfully ingested value are fetched, so each run is incremental.
- Each row becomes one usage event: the configured account, event-name, and timestamp columns map to the event’s identity, and every other column is attached as an event property.
Choosing a state field
The state field drives incremental syncing, so it must be monotone with respect to when rows become visible in your table: The state field can be aDate or a DateTime/DateTime64 column; configure the matching type (DATE or TIMESTAMP).
Configuration
Set up the connection in the dashboard underSettings → Integrations → ClickHouse:
Event mapping
Only the mapped columns are treated specially — every other column in the table is ingested as an event property. If you want to project or filter what Alguna sees, point the configuration at a ClickHouse view.