POST /events. Use it when usage already lands in ClickHouse and you would rather not build an event pipeline. Usage sources are described together in How Alguna works; the sibling connector is BigQuery.
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 under Settings → Connections → 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.
Monitoring
The integration page shows the run history for each configuration: when each sync ran, how many events it ingested, the latest event timestamp, and whether the run was truncated by the per-run row cap.Related
- Send usage events — the event shape rows are mapped onto, and the API and CSV alternatives
- Create metrics — aggregating the ingested events
- BigQuery — the same integration for BigQuery tables