Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 20 min read Case study mediumAdept

Open sourcing kubenetmon: how we monitor data transfer in ClickHouse Cloud

kubenetmon, now open source, is ClickHouse Cloud's in-house tool for monitoring data transfer across many Kubernetes clusters on AWS, GCP and Azure. It scrapes Linux conntrack with netfilter accounting enabled and atomically resets the counters on each scrape, so every record is per-interval bytes and packets. Connections are then attributed to pods, workloads and availability zones for forensics, attribution and cost metering. Cilium Hubble, cloud provider flow logs, OpenCost-style cost tools, in-app ClickHouse tracking and third-party eBPF agents were rejected over missing volumetric context, cost, provider inconsistency, Prometheus cardinality, and risk from mixing eBPF stacks.

Related posts

  • 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.

  • How Uken Games reduces observability costs by 87% with ClickHouse

    ClickHouse mediumAdept

    Uken Games replaced Datadog with an open-source observability stack: OpenTelemetry collectors in an agent-plus-gateway layout, SigNoz on a single ClickHouse node for traces, AWS-managed Prometheus for metrics, CloudWatch for logs, and Grafana alerts defined as code via a custom CloudFormation resource. All traces fit in about 170 GB on one ClickHouse node, the migration had zero downtime, and annual cost fell about 87% to roughly $12,000. Key cost levers were dropping unused metrics and attributes, tail-style trace sampling that keeps errors and slow requests plus a 5–10% sample, alerting on unsampled aggregate metrics, and capping retention at two weeks.

  • OpenMeter: Real-time usage-based billing powered by ClickHouse Cloud

    ClickHouse easyNovice

    OpenMeter, an open-source usage-based metering and billing platform, replaced a Kafka + ksqlDB + Postgres pipeline with Kafka feeding ClickHouse Cloud. The old setup was costly and hard to operate because ksqlDB has no clustering, which forced manual sharding across many instances. The new design uses Kafka for buffering and back-pressure with per-customer topic partitioning, and a modified ClickHouse Kafka Connect Sink for deduplication. ClickHouse materialized views over AggregatingMergeTree tables roll raw events into one-minute tumbling windows and serve as long-term storage. Unlike observability metrics, billing data cannot be sampled or rolled up, so precise dedup and long retention are core requirements.

  • 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.

  • Cost-predictable logging at scale with ClickHouse, Grafana & WarpStream

    ClickHouse mediumAdept

    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.

The quest for software engineering knowledge.

Look:
Layout: