Trench ingests and stores product events for real-time analytics. It ships as a single Docker image combining Kafka, ClickHouse, and a Node.js tracking layer.
Overview
Trench is an event tracking system built on Apache Kafka and ClickHouse. It accepts high volumes of events and supports querying and analytics in real time. The project targets product analytics dashboards, observability-style pipelines, and other event-driven use cases described in its documentation.
The stack is packaged as one production-ready Docker image so operators do not need to assemble Kafka, ClickHouse, and application services separately. Ingestion aligns with the Segment-style Track, Group, and Identify APIs, which lets existing Segment-oriented clients send data without bespoke adapters.
Operators can query events through HTTP endpoints and run raw SQL via a dedicated queries API. Webhooks can forward data to downstream systems. Kafka connections support SASL and SSL configuration for both the Node.js client and ClickHouse.
Trench is offered as self-hosted open source that you deploy on your own infrastructure, and as a managed cloud option for teams that prefer not to run the stack themselves. The product emphasizes no-cookie tracking and states GDPR and PECR compliance, with user controls to access, rectify, or delete data.
Key features
- Segment-compatible Track, Group, Identify APIs
- Single production-ready Docker image
- Real-time event querying
- Raw SQL analysis endpoint
- Webhook destinations
- Kafka SASL and SSL support
- No-cookie GDPR and PECR positioning
- Thousands of events per second on one node
Use cases
- Product analytics dashboards
- LLM RAG event pipelines
- Observability platforms
- Google Analytics-style setups with Grafana
Does the same job as
Trench doesn't name these products itself, but its own description shows it does the same job.