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

nfsd v4 ops index mismatch #492

Closed
atkinsam opened this issue Feb 15, 2023 · 2 comments · Fixed by #543
Closed

nfsd v4 ops index mismatch #492

atkinsam opened this issue Feb 15, 2023 · 2 comments · Fixed by #543

Comments

@atkinsam
Copy link

Hi, I believe the nfsd v4 ops parsing here uses indices which are mismatched on some ops.

func parseV4Ops(v []uint64) (V4Ops, error) {

I can see that many/most are correct:

But the write operation, for example, appears to be incorrect. The parser uses index 37, but the write operation uses index 38 in the kernel. So the parser should really be using index 39.

I noticed this by comparing stats emitted by node_exporter with what I see in nfsstat -s.

@discordianfish
Copy link
Member

Thanks! Can you submit a PR to fix this?

@jjaakkol
Copy link

jjaakkol commented Sep 9, 2023

I can confirm that this pull request fixes the issue. My Grafana dashboard now correctly reports NFSv4 writes.

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

Successfully merging a pull request may close this issue.

3 participants