Simple cloud data transfer cost monitoring - Kubenetmon
summary
Surprising cloud bills come from cross-AZ and NAT egress and Kubenetmon traces those bytes by scraping the Linux conntrack table on each node with a daemonset agent, mapping source/destination IPs to pods via a push model using Kubernetes informers, and writing meterable records into a ClickHouse warehouse. Example: one cluster yields ~86 TB of raw connection rows compressing to 2.68 TB (3% of original) and query latency for billing queries is sub-second; deployment is a Helm chart.
AI-written summary · about
chapters (16)
- 0:00Surprise Cloud Bills
- 0:51Meet Chen and Opnet Mon
- 2:20What Data Transfer Costs Are
- 3:09Reliability Creates Network Spend
- 4:38NAT Gateway Bill Shock
- 5:37Why Tracing Traffic Is Hard
- 6:45ClickHouse Cloud Background
- 7:41When Network Costs Hit
- 9:03Three Step Monitoring Plan
- 10:40Conntrack Agent Collection
- 11:09Server Mapping and Push Model
- 12:21ClickHouse Warehouse and Scale
- 13:09Architecture Recap and Queries
- 15:03Install and Wrap Up
- 15:30Q&A Design Choices
- 18:09Closing Clarifications
