freedomkk-qfeng / windows-agent

Apache License 2.0
120 stars 46 forks source link

网卡监控出现负数 #19

Open xiaohei417 opened 5 years ago

xiaohei417 commented 5 years ago

net.if.in.bytes 每当网卡流量跑的比较高时,指标的数值会出现负数,这样影响到了告警.有没有遇到类似情况的伙伴?

xiaohei417 commented 5 years ago

@freedomkk-qfeng hi,这个问题我已经解决了,发现是gopsutil这个库的uint类型溢出,导致的网卡计数器重置,https://github.com/shirou/gopsutil/issues/693 建议更新一下vendor包中gopsutil/net的版本