---
title: "Open sourcing kubenetmon: how we monitor data transfer in ClickHouse Cloud"
description: "kubenetmon, now open source, is ClickHouse Cloud's in-house tool for monitoring data transfer across many Kubernetes clusters on AWS, GCP and Azure."
url: "https://swe.quest/articles/open-sourcing-kubenetmon-how-we-monitor-data-transfer-in-clickhouse-cloud-b1818230173f499e"
canonical: "https://clickhouse.com/blog/kubenetmon-open-sourced"
source: "ClickHouse"
published: "2025-01-30"
difficulty: "medium"
kind: "Case study"
reading_minutes: 20
tags: ["observability","kubernetes","networking","cost-optimization","linux"]
---

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

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2025-01-30, 20 min read, Case study. Original: [https://clickhouse.com/blog/kubenetmon-open-sourced](https://clickhouse.com/blog/kubenetmon-open-sourced)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [Linux](https://swe.quest/tags/linux.md) (Infrastructure)

## Prerequisites

- Kubernetes networking basics ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- Linux netfilter/conntrack ([easy posts on Linux](https://swe.quest/tags/linux.md?difficulty=easy))
- cloud data transfer pricing ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))

## Keywords

kubenetmon, ClickHouse Cloud, conntrack, Cilium Hubble, netfilter, eBPF, OpenCost, Prometheus

## Related posts

- [Goodbye limitations, hello data: How Qonto is rethinking observability with ClickHouse Cloud](https://swe.quest/articles/goodbye-limitations-hello-data-how-qonto-is-rethinking-observability-with-756d9cefa803d826.md): ClickHouse · 2026-05-01 · Easy · 8 min read · Observability, Analytics & OLAP, AI agents, Cost optimization
  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.
- [How Uken Games reduces observability costs by 87% with ClickHouse](https://swe.quest/articles/how-uken-games-reduces-observability-costs-by-87-with-clickhouse-b3d46180eaebbbed.md): ClickHouse · 2026-09-01 · Medium · 7 min read · Observability, Cost optimization, Analytics & OLAP, Games
  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.
- [OpenMeter: Real-time usage-based billing powered by ClickHouse Cloud](https://swe.quest/articles/openmeter-real-time-usage-based-billing-powered-by-clickhouse-cloud-1ee88b3c82298546.md): ClickHouse · 2024-06-13 · Easy · 2 min read · Analytics & OLAP, Queues & messaging, Stream processing, Payments & fintech
  OpenMeter, an open-source usage-based metering and billing platform, replaced a Kafka + ksqlDB + Postgres pipeline with Kafka feeding ClickHouse Cloud.
- [How Canva achieved 10x faster search and 70% lower costs with ClickHouse](https://swe.quest/articles/how-canva-achieved-10x-faster-search-and-70-lower-costs-with-clickhouse-40e415ef239059a0.md): ClickHouse · 2025-12-01 · Medium · 7 min read · Observability, Analytics & OLAP, Cost optimization, Performance engineering, Databases
  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.
- [Cost-predictable logging at scale with ClickHouse, Grafana & WarpStream](https://swe.quest/articles/cost-predictable-logging-at-scale-with-clickhouse-grafana-warpstream-e8190c33bfc4f3b4.md): ClickHouse · 2023-11-14 · Medium · 22 min read · Observability, Analytics & OLAP, Cost optimization, Queues & messaging, Performance engineering
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
