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

mountstats: not enough information for NFS stats #1583

Open
dohnto opened this issue Jan 8, 2020 · 0 comments
Open

mountstats: not enough information for NFS stats #1583

dohnto opened this issue Jan 8, 2020 · 0 comments

Comments

@dohnto
Copy link

dohnto commented Jan 8, 2020

Host operating system: output of uname -a

Linux hostname 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

node_exporter version: output of node_exporter --version

node_exporter, version 0.15.2+ds (branch: debian/sid, revision: 0.15.2+ds-1)
build user: [email protected]
build date: 20171214-15:26:08
go version: go1.9.2

node_exporter command line flags

--collector.mountstats

Are you running node_exporter in Docker?

No

What did you do that produced an error?

Nothing special, just scrape node exporter

What did you expect to see?

Mountstats metrics

What did you see instead?

No mountstats metrics. In logs:

Jan 07 14:15:10 hostname prometheus-node-exporter[22123]: time="2020-01-07T14:15:10Z" level=error msg="ERROR: mountstats collector failed after 0.005747s: failed to parse mountstats: not enough information for NFS stats: [obfuscated...] source="collector.go:123"

This is caused by following line, because my mountstats contain following line (sorry I had to obfuscate it, this is not real output, but it is multiline):

        impl_id:        name='XXX 10.7-STABLE #0 r325575+d8sf789df(HEAD): Fri May 5 12:42:01 EDT 2018
    user@hostname:/path/to/something
',domain='something.com',date='1789840000,0'
        caps:   ...

I believe, that this is caused, because there are no 2 fields in some line and procfs parser just fails. If I remove replace the return nil, fmt.Errorf("not enough information for NFS stats: %v", ss) by continue, everything works as expected.

Thanks for any help.

@dohnto dohnto changed the title mountstats: mountstats: not enough information for NFS stats Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant