-
Notifications
You must be signed in to change notification settings - Fork 325
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 retrieve conntrack stats on an armv5 based Synology NAS #499
Comments
You're actually seeing two separate errors in v1.5.0. The original "invalid conntrackstat entry, missing fields" error is present in both v1.2.2 and v1.5.0, since procfs expects The panic that you see in v1.5.0 is due to node_exporter v1.4.0 and later using kernel netlink to get netdev stats (prometheus/node_exporter#2074). You could try reverting to the previous method of parsing |
Your
According to iproute manpages:
This field first appeared in kernel 2.6.35. |
Linux < 2.6.35 was missing the `search_restart` field in nf_conntrack. * Refactor stat parsing to simplify code. * Support 16-field nf_conntrack entries. Fixes: #499 Signed-off-by: SuperQ <[email protected]>
Linux < 2.6.35 was missing the `search_restart` field in nf_conntrack. * Refactor stat parsing to simplify code. * Support 16-field nf_conntrack entries. * Support additional fields. Fixes: #499 Signed-off-by: SuperQ <[email protected]>
Now I got that. Thanks for explaining! I just tried it and yes, I can confirm, that using the flags |
Linux < 2.6.35 was missing the `search_restart` field in nf_conntrack. * Refactor stat parsing to simplify code. * Support 16-field nf_conntrack entries. * Support additional fields. Fixes: #499 Signed-off-by: SuperQ <[email protected]>
Linux < 2.6.35 was missing the `search_restart` field in nf_conntrack. * Refactor stat parsing to simplify code. * Support 16-field nf_conntrack entries. * Support additional fields. Fixes: prometheus#499 Signed-off-by: SuperQ <[email protected]>
Host operating system: output of uname -a
Linux DS 2.6.32.12 #25556 Thu Jul 1 14:25:48 CST 2021 armv5tel GNU/Linux synology_88f6282_411
node_exporter version: output of node_exporter --version
node_exporter, version 1.5.0 (branch: HEAD, revision: prometheus/node_exporter@1b48970)
build user: root@6e7732a7b81b
build date: 20221129-19:00:13
go version: go1.19.3
platform: linux/arm
As originally reported in this ticket, the conntrack collector on the node_exporter seems to have an issue because of some expected fields beeing missing.
The error meassage with node_exporter v 1.2.2 looks as following (node_exporter log output):
ts=2023-03-13T19:04:46.789Z caller=collector.go:169 level=error msg="collector failed" name=conntrack duration_seconds=0.000592692 err="failed to retrieve conntrack stats: failed to read conntrack stats from \"/proc/net/stat/nf_conntrack\": invalid conntrackstat entry, missing fields"
With version 1.5.0 it seems to be even worse:
Content of /proc/net/stat/nf_conntrack:
The text was updated successfully, but these errors were encountered: