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
mountstats error: invalid NFS per-operations stats #275
Comments
|
Looks like there was a new field added in the 5.3 kernel (torvalds/linux@a332518) and we are only handling a specific number of fields. So the first thing to fix is that we should be checking that the number of fields is Line 511 in 8068798
NFSOperationStats struct which is collected only if we find the extra field.
@weikinhuang do you want to submit a PR for this? |
|
@pgier Sure, I can give it a try |
|
Unfortunately, I'm not too familiar with golang, and creating dynamic length arrays |
|
@weikinhuang Ok, no problem, I created PR #276 to address this and added your mountstats example to the tests. |
|
thank you so much, also learned a little bit of go, i thought you can only have static arrays. |
Host operating system: output of
uname -anode_exporter version: output of
node_exporter --versionv0.18.1
node_exporter command line flags
Are you running node_exporter in Docker?
yes
What did you do that produced an error?
Just trying to get stats on my nfs volume mounts (k8s).
What did you expect to see?
No errors, and stats in grafana.
What did you see instead?
I'm using the latest prometheus-operator chart here and noticed recently that my nfs volume stats are missing. I changed my base OS from container-linux to ubuntu 19.10. I'm also running a single instance of ubuntu 18.04 and that is also not reporting stats.
Example output from
/proc/self/mountstats:Crosspost from prometheus/node_exporter#1642
The text was updated successfully, but these errors were encountered: