You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, cAdvisor retrieves UDP metrics by parsing /proc/net/udp and /proc/net/udp6, as shown below:
ifh.includedMetrics.Has(container.NetworkUdpUsageMetrics) {
u, err:=udpStatsFromProc(h.rootFs, h.pid, "net/udp")
iferr!=nil {
klog.V(4).Infof("Unable to get udp stats from pid %d: %v", h.pid, err)
} else {
stats.Network.Udp=u
}
u6, err:=udpStatsFromProc(h.rootFs, h.pid, "net/udp6")
iferr!=nil {
klog.V(4).Infof("Unable to get udp6 stats from pid %d: %v", h.pid, err)
} else {
stats.Network.Udp6=u6
}
}
However, I have observed that the UDP metrics obtained from these files tend to be of low quality because the values change very frequently, which can result in inconsistent and unreliable data.
To address this, I propose enhancing the UDP metrics by incorporating data from /proc/net/snmp. This file provides more comprehensive UDP statistics, similar to those already used for advanced TCP metrics. For example, /proc/net/snmp includes details like:
Currently, cAdvisor retrieves UDP metrics by parsing
/proc/net/udp
and/proc/net/udp6
, as shown below:However, I have observed that the UDP metrics obtained from these files tend to be of low quality because the values change very frequently, which can result in inconsistent and unreliable data.
To address this, I propose enhancing the UDP metrics by incorporating data from
/proc/net/snmp
. This file provides more comprehensive UDP statistics, similar to those already used for advanced TCP metrics. For example,/proc/net/snmp
includes details like:Integrating these metrics would offer valuable insights for deeper network analysis and troubleshooting.
I am willing to contribute by creating a PR to implement this enhancement.
Looking forward to your thoughts and feedback on this proposal.
Thank you!
The text was updated successfully, but these errors were encountered: