kubenetmon: build a tool to meter data in ClickHouse Cloud
summary
kubenetmon meters per-connection bytes and packets by reading Linux conntrack accounting counters, running agents that scrape every 5 seconds and send deltas over gRPC to a central server that resolves IPs to Kubernetes workloads via informers. architecture moves attribution off agents into a hub for efficiency; data lands in ClickHouse with per-minute SummingMerge behavior so rates are derived by simple division. production deployments store ~400 billion rows over 90 days, compressing ~30x to under 3 TB, letting teams pinpoint cross-region backups, noisy pods and real-time egress costs.
AI-written summary · about
