-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Collector fails with integer overflow #2856
Comments
It looks like you have possibly installed the wrong platform binary. You have installed a 32-bit binary on a 64-bit system. Your kernel says Example: $ uname -a
Linux tock 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
$ node_exporter --version
node_exporter, version 1.7.0 (branch: HEAD, revision: 7333465abf9efba81876303bb57e6fadb946041b)
build user: root@35918982f6d8
build date: 20231112-23:54:05
go version: go1.21.4
platform: linux/arm64
tags: netgo osusergo static_build |
I reviewed the code, the correct data types are used (VSize, RSSLimit). On a 32-bit system these would not produce an error. |
I will reinstall it and report back, however as you pointed out I feel it will not change anything. |
I did a review of the ProcFS code. The values that produced an error would not have overflowed with a real 32-bit system. The values are related to memory size, which are parsed correctly as platform dependent values. I don't think any code changes are valid. I highly recommend using https://github.com/prometheus-community/ansible as a way to install things, it ensures the correct platform binaries are deployed. |
Thanks for the tip, after reinstalling I confirm the error is gone. |
Host operating system:
Linux rpi4srv2 6.1.0-rpi6-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.58-1+rpt2 (2023-10-27) aarch64 GNU/Linux
node_exporter version:
node_exporter command line flags
/usr/local/bin/node_exporter --collector.systemd --collector.processes --collector.perf --web.listen-address=xxx:9100
node_exporter log output
2023-11-24T08:34:35.470077+02:00 rpi4srv2 node_exporter[194764]: ts=2023-11-24T06:34:35.469Z caller=collector.go:169 level=error msg="collector failed" name=processes duration_seconds=0.036614302 err="unable to retrieve number of allocated threads: error reading stat for pid 816: unsigned integer overflow on token 9950425088"
Are you running node_exporter in Docker?
No
What did you do that produced an error?
Probably after installing Kibana, the process belong to it.
Output of
cat /proc/816/stat
:What did you expect to see?
No error in syslog.
What did you see instead?
see above
The text was updated successfully, but these errors were encountered: