Cost-predictable logging at scale with ClickHouse, Grafana & WarpStream
Combining ClickHouse Cloud's Development tier, WarpStream (a Kafka-compatible streaming platform built on object storage) and Grafana gives a low-cost logging stack, dubbed CGW. Benchmarks on a replicated nginx-style access log dataset show a steady ~14x compression ratio, with 5.3 billion rows (1.48 TiB raw) stored in about 93 GiB. Most SRE-style dashboard queries finish in under one second. With a $193/month instance cap and stateless WarpStream agents that avoid inter-AZ costs, the setup is claimed to be 23–42x cheaper than Elastic or Datadog for the same data volume.
Related posts
- How we Built a 19 PiB Logging Platform with ClickHouse and Saved Millions
ClickHouse mediumAdept
ClickHouse replaced Datadog for internal logging with LogHouse, a per-region ClickHouse deployment holding over 19 PiB uncompressed (37 trillion rows) for its AWS regions. The data compresses about 17x on S3-backed SharedMergeTree storage with local NVMe caches, and the team claims the system is at least 200x cheaper than Datadog list pricing. A team of 1.5 engineers built it in under three months. Key design choices were OpenTelemetry collectors writing directly to ClickHouse with no Kafka buffer, no cross-region data transfer (queries span regions instead), and a move from plaintext to structured JSON logs. Frequently queried fields such as pod_name are extracted into ordering-key columns, while the rest is stored in a Map(String, String). Tradeoffs include higher in-transit drop rates, caused by uneven agent-to-gateway connections and the lack of autoscaling in the ingest layer.
- How Canva achieved 10x faster search and 70% lower costs with ClickHouse
ClickHouse mediumAdept
Canva moved tracing and logging (about 3 million spans and 3 million logs per second) onto a self-managed ClickHouse cluster of 5 shards × 3 replicas on Kubernetes. It reached a 14x compression ratio, cut costs by about 70%, and brought P90 trace search down from 30s to 2.5s. The ingestion gains came from batching roughly 200k spans per insert in OpenTelemetry collectors and writing straight to local tables. Search speed came from a sorting key aligned with Jaeger's filters, daily partitions, a materialized-view lookup table keyed by trace ID, and a client-side sliding search window. Logs flow through Kinesis and Lambda using tuned async inserts, with ngram Bloom filters on flattened log strings for free-text search and a custom DSL query gateway.
- Clever ingests 200x more logs at the same cost with ClickHouse Cloud
ClickHouse mediumAdept
Clever replaced a split Datadog/Athena logging setup with ClickHouse Cloud. It now indexes all ~150 TB/month of logs from 400 services and 200 Lambdas with 60-day retention, a 200x increase in searchable volume, at no extra cost and with 10x compression. The schema extracts hot fields into columns and stores the rest as raw JSON plus an attributes map. It uses token bloom filter indexes at granularity 32 for full-text search, date partitions with a 60-day TTL, and orders by negative Unix timestamp for an 8-10x query speedup. Resilience comes from separate dev and per-region prod services joined via remoteSecure and merge tables, all managed with Terraform and Goose. A custom LogQL-to-SQL layer keeps Grafana familiar for engineers.
- Scaling observability at Character.AI: thousands of GPUs, 10x logs, and 50% lower cost with ClickStack
ClickHouse mediumAdept
Character.AI consolidated fragmented logging across multi-cloud Kubernetes GPU clusters onto ClickStack (HyperDX UI) backed by ClickHouse Cloud. It ingests 10x more log data at 50% lower cost, and log searches that took minutes now return in seconds. Raw output of about 450 PB/month is tamed with aggressive sampling: errors and warnings are kept in full, while info logs are sampled at 1 in 10,000 for the backbone service and 1% elsewhere. OpenTelemetry Collector DaemonSets insert directly with async inserts and batching. Schema tuning included primary keys aligned to time and service queries, materialized columns extracted from JSON, pruned skip indexes and per-column compression, yielding roughly 15–20x compression. Collector misconfiguration, such as missing batching or unsampled ingestion, caused outages, and a gateway layer plus native JSON and PromQL support are planned next.
- Goodbye limitations, hello data: How Qonto is rethinking observability with ClickHouse Cloud
ClickHouse easyNovice
Qonto, a European digital bank, moved trace storage from Grafana Tempo to ClickHouse Cloud, extending query windows from 2-3 hours to two weeks without sampling and adopting a wide-events model instead of the logs/metrics/traces pillars. High-cardinality span and resource attributes compress from 231 TB to 376 GB, saving an estimated $70K a year in S3 costs, so engineers are now encouraged to add attributes freely. Telemetry flows through OpenTelemetry collectors over AWS PrivateLink into ClickHouse, with Grafana for dashboards. An AI incident companion built on the ClickHouse MCP server, behind a roughly 30-line read-only Python layer, lets non-experts investigate incidents and scope affected customers in plain English.