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
failed to parse /proc/net/softnet_stat #1625
Comments
Thanks for the bug report, this needs to be fixed in the procfs library. It looks like older kernels have different fields. |
Allow 9 or more columns from softnet, older kernels had fewer columns. Fix for prometheus/node_exporter#1625 Signed-off-by: Ben Kochie <superq@gmail.com>
Allow 9 or more columns from softnet, older kernels had fewer columns. Fix for prometheus/node_exporter#1625 Signed-off-by: Ben Kochie <superq@gmail.com>
Allow 9 or more columns from softnet, older kernels had fewer columns. Fix for prometheus/node_exporter#1625 Signed-off-by: Ben Kochie <superq@gmail.com>
Is there a fix on this issue? Getting the same issue when running node exporter on Centos 6.. "level=error ts=2020-03-15T19:33:12.156Z caller=collector.go:161 msg="collector failed" name=softnet duration_seconds=0.000105656 err="could not get softnet statistics: failed to parse /proc/net/softnet_stat: 10 columns were detected, but 11 were expected" Thanks. |
The fix is upstream, but I'm waiting on one more other fix to be merged and I can cut a release. As a workaround, you can disable softnet with |
Thank you. I will try that workaround. Hopefully will get a proper fix soon. |
Allow 9 or more columns from softnet, older kernels had fewer columns. Fix for prometheus/node_exporter#1625 Signed-off-by: Ben Kochie <superq@gmail.com>
This workaround doesn't affect my logs.
|
@roy-spark That's because that is the |
Bump procfs to latest release. Fixes: prometheus#1625 Fixes: prometheus#1634 Signed-off-by: Ben Kochie <superq@gmail.com>
Bump procfs to latest release. Fixes: prometheus#1625 Fixes: prometheus#1634 Signed-off-by: Ben Kochie <superq@gmail.com>
Host operating system: output of
uname -a
Linux cscale-82-156.XXXXXXXXX.com 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
node_exporter version: output of
node_exporter --version
node_exporter, version 1.0.0-rc.0 (branch: HEAD, revision: ef7c058)
build user: root@b38a2df1a38b
build date: 20200220-12:54:05
go version: go1.13.8
node_exporter command line flags
./node_exporter
--collector.cpu.info
--collector.buddyinfo
--collector.interrupts
--collector.ksmd
--collector.logind
--collector.mountstats
--collector.processes
--collector.qdisc
--collector.schedstat
--collector.systemd
--collector.tcpstat
Are you running node_exporter in Docker?
no
What did you do that produced an error?
launched node_exporter
What did you expect to see?
no errors
What did you see instead?
level=error ts=2020-02-27T22:48:20.264Z caller=collector.go:161 msg="collector failed" name=softnet duration_seconds=0.001846591 err="could not get softnet statistics: failed to parse /proc/net/softnet_stat: 10 columns were detected, but 11 were expected"
This is the contents of the softnet_stat file:
The text was updated successfully, but these errors were encountered: