ClickhouseClickHouseProblem & solution
Trunk cuts observability costs by up to 95% and reclaims 20 engineering hours a week with ClickHouse Observability
Summary
Trunk, a CI acceleration platform, replaced Datadog with ClickHouse Observability and migrated its analytics from self-managed TimescaleDB to ClickHouse Cloud. The observability switch cut costs by 15-20x while ingesting 100% of traffic instead of 15%, keeping about 375,000 log lines and 2.2 million traces per minute. The analytics migration reduced flaky test detection from up to an hour to five minutes or less and enabled new features like real-time CI usage views. Trunk now processes nearly 2 billion test results a day, with customer workloads 10-15x larger than on Postgres. AI-assisted triage using ClickStack’s MCP and agents gives back roughly 20 engineering hours a week.
Context
Trunk is a CI acceleration platform that processes about 2 billion customer test results a day. Its previous observability stack (Datadog) had become too expensive, and its analytics database (self-managed TimescaleDB) required significant maintenance and caused slow flaky test detection (up to an hour). The company needed a unified, cost-effective, and performant data layer for both observability and application analytics.
Approach / What changed
Trunk replaced Datadog with ClickHouse Observability (ClickStack) for logs, traces, and metrics, and migrated its customer test and CI analytics from self-managed TimescaleDB to ClickHouse Cloud on AWS. The observability migration used the ClickStack OpenTelemetry collector and UI; the analytics migration used ClickPipes for initial sync, then dual writes, and finally direct writes to ClickHouse.
Takeaways
Replacing Datadog with ClickHouse Observability reduced costs by 15-20x and allowed Trunk to ingest 100% of logs and traces instead of 15%, with 30-day retention.
Migrating from self-managed TimescaleDB to ClickHouse Cloud cut flaky test detection time from up to an hour to five minutes or less, and enabled new features like real-time CI usage views.
Trunk uses the ClickStack MCP server with agents (Claude Code, Codex) for incident triage and dashboard creation, giving back about 20 engineering hours a week and reducing the need for separate AI SRE tools.
FAQ
How much did Trunk reduce observability costs?
Trunk estimates ClickHouse Observability is 15-20x cheaper to run than Datadog. They now ingest 100% of traffic (about 375,000 log lines and 2.2 million traces per minute) instead of only 15% on Datadog, with 30 days of retention.
How much faster is flaky test detection after the migration?
Flaky test detection dropped from up to an hour to five minutes or less after migrating from self-managed TimescaleDB to ClickHouse Cloud. The faster queries also enabled new features like rollups and real-time CI usage views that were impossible with TimescaleDB.
How do Trunk's agents use ClickHouse Observability?
Trunk uses the ClickStack MCP server with Claude Code or Codex to let agents investigate incidents and create dashboards. Agents can query both application and observability data in ClickHouse, reducing the need for multiple MCPs and giving back about 20 engineering hours a week.
Source and freshness
- Source
- clickhouse.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.