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
The text was updated successfully, but these errors were encountered:
dzy176
changed the title
[BUG] connects metrics in tcpsummary should be accumulated instead of overwrite
[BUG] connects metrics having same netns in tcpsummary should be accumulated instead of overwrite
May 21, 2024
Each pid in the pidlist corresponds to a separate netns, and the netns corresponding to any two pids are different. During the for idx := range pidlist loop, every netns would only be processed once.
When the loop starts, the value of resMap[TCPEstablishedConn][nsinum] is 0, and there is no need to accumulate during the loop.
https://github.com/alibaba/kubeskoop/blob/18cc669b7048d6299a4eb0fbc9efdab2d1aae3f7/pkg/exporter/probe/proctcpsummary/proctcp.go#L137C1-L143C40
Maybe
resMap[TCPEstablishedConn][nsinum] += est + est6 ......
is correct?@Lyt99
@RichardoMrMu any idea?
The text was updated successfully, but these errors were encountered: