KUBErnetes cross-ZONe NETwork monitoring with Prometheus for Cilium-based clusters (in Legacy host routing mode).
While same-zone traffic is free on cloud providers, cross-zone traffic is not and can easily become a major cost factor if a lot of data is moved over the network. Therefore, understanding which workloads are causing cross-zone traffic is vital.
Read The New Stack article: eBPF Tool Identifies Cross-Zone Kubernetes Network Traffic
Read our blog post: kubezonnet: Monitor Cross-Zone Network Traffic in Kubernetes
Kubezonnet is designed to be deployed on Kubernetes, so nothing special is required, just apply the manifests:
kubectl apply -f https://raw.githubusercontent.com/polarsignals/kubezonnet/refs/heads/main/deploy/kubezonnet.yaml
Container images are published at:
ghcr.io/polarsignals/kubezonnet-agentghcr.io/polarsignals/kubezonnet-serverKubezonnet is made up of two components:
The server portion of kubezonnet exposes a Prometheus metrics endpoint on port 8080, which can be scraped by Prometheus. Once set up the pod_cross_zone_network_traffic_bytes_total
counter will be available.
This will show the top 20 pods by cross-zone network traffic per second in the last 5 minutes, in megabytes.
topk(20, rate(pod_cross_zone_network_traffic_bytes_total[5m])) / 1e6
When trying to understand a cloud bill, the cumulative amount over a timeframe may be more interesting than the current usage. This query will show the top 20 pods by cross-zone netw ork traffic in the last week, in gigabytes:
topk(20, increase(pod_cross_zone_network_traffic_bytes_total[1w])) / 1e9
The server also logs something akin to flow logs, which can be used to understand the network traffic in more detail. They print the source and destination pods in addition to the ne twork traffic associated whenever agents send statistics (every 10 seconds).
Various people have helped in the process of putting some of the pieces of this project together. In no particular order that includes, but is not limited to:
377 followers · starred Aug 2026
919 followers · starred Jan 2025
767 followers · starred Jan 2025
219 followers · starred Jan 2025
KUBErnetes cross-ZONe NETwork monitoring with Prometheus for Cilium-based clusters (in Legacy host routing mode).
While same-zone traffic is free on cloud providers, cross-zone traffic is not and can easily become a major cost factor if a lot of data is moved over the network. Therefore, understanding which workloads are causing cross-zone traffic is vital.
Read The New Stack article: eBPF Tool Identifies Cross-Zone Kubernetes Network Traffic
Read our blog post: kubezonnet: Monitor Cross-Zone Network Traffic in Kubernetes
Kubezonnet is designed to be deployed on Kubernetes, so nothing special is required, just apply the manifests:
kubectl apply -f https://raw.githubusercontent.com/polarsignals/kubezonnet/refs/heads/main/deploy/kubezonnet.yaml
Container images are published at:
ghcr.io/polarsignals/kubezonnet-agentghcr.io/polarsignals/kubezonnet-serverKubezonnet is made up of two components:
The server portion of kubezonnet exposes a Prometheus metrics endpoint on port 8080, which can be scraped by Prometheus. Once set up the pod_cross_zone_network_traffic_bytes_total
counter will be available.
This will show the top 20 pods by cross-zone network traffic per second in the last 5 minutes, in megabytes.
topk(20, rate(pod_cross_zone_network_traffic_bytes_total[5m])) / 1e6
When trying to understand a cloud bill, the cumulative amount over a timeframe may be more interesting than the current usage. This query will show the top 20 pods by cross-zone netw ork traffic in the last week, in gigabytes:
topk(20, increase(pod_cross_zone_network_traffic_bytes_total[1w])) / 1e9
The server also logs something akin to flow logs, which can be used to understand the network traffic in more detail. They print the source and destination pods in addition to the ne twork traffic associated whenever agents send statistics (every 10 seconds).
Various people have helped in the process of putting some of the pieces of this project together. In no particular order that includes, but is not limited to:
377 followers · starred Aug 2026
919 followers · starred Jan 2025
767 followers · starred Jan 2025
219 followers · starred Jan 2025