Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

以采集数据被丢弃 #9

Open
YouZhengChuan opened this issue Jan 3, 2019 · 0 comments
Open

以采集数据被丢弃 #9

YouZhengChuan opened this issue Jan 3, 2019 · 0 comments

Comments

@YouZhengChuan
Copy link

sw/ifstat.go

Line 462 in 5842711

return

RunSnmpwalk 使用的 methodgetnext,这样会一项一项的获取每个端口的指标数据。
有时候当获取到某个端口之后,会发生超时,并超过重试次数,但是此时其实已经采集了大部分的端口数据。

而在RunSnmpRetry函数中,一旦发生错误,则丢弃所有数据,我认为这种处理方式不太合理。

毕竟除了speed指标,其他采集指标之间,没有什么关联,就算某个指标有部分网卡采集超时,不应该影响其他端口的数据上报。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant