Skip to content

mountstats: not enough information for NFS stats #1583

Description

@dohnto

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: pkg-go-maintainers@lists.alioth.debian.org
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions