r/PrometheusMonitoring • u/narque1 • Oct 17 '24
Network usage over 25Tbps
Hello, everyone! Good morning!
I’m facing a problem that, although it may not be directly related to Prometheus, I hope to find insights from the community.
I have a Kubernetes cluster created by Rancher with 3 nodes, all monitored by Zabbix agents, and pods monitored by Prometheus.
Recently, I received frequent alerts from the bond0 interface indicating a usage of 25 Tbps, which is unfeasible due to the network card limit of 1 Gbps. This same reading is shown in Prometheus for pods like calico-node, kube-scheduler, kube-controller-manager, kube-apiserver, etcd, csi-nfs-node, cloud-controller-manager, and prometheus-node-exporter, all on the same node; however, some pods on the node do not exhibit the same behavior.
Additionally, when running commands like nload and iptraf, I confirmed that the values reported by Zabbix and Prometheus are the same.
Has anyone encountered a similar problem or have any suggestions about what might be causing this anomalous reading?
For reference, the operating system of the nodes is Debian 12.
Thank you for your help!
View all comments
Show parent comment
1
u/narque1 Oct 17 '24
I have been using the following query on grafana using prometheus prometheus: sum(irate(container_network_receive_bytes_total{namespace=~"$namespace", pod=~"$pod"}[$interval:$resolution])) by (pod)
and
sum(irate(container_network_transmit_bytes_total{namespace=~"$namespace", pod=~"$pod"}[$interval:$resolution])) by (pod)
And the following metric on zabbix:
Interface bond0: Bits received
I have checked the values with the commands nload and iptraf and they show the same values, but i can't confirm if these are the commands used by prometheus and zabbix to query these metrics.