Skip to content

Differentiate the error type in metrics for filesystem collecter #2918

@PamelaMei-SAP

Description

@PamelaMei-SAP

Since node_exporter can capture the error of mountpoint time out, is it OK to report such error as different value in node_filesystem_device_error metrics e.g. 255 other than 1, since some permission error has the same value as 1
node_filesystem_device_error{device="...",fstype="nfs4",mountpoint="/test_nfs"} 1

Host operating system: output of uname -a

Linux 4.12.14-122.189-default

node_exporter version: output of node_exporter --version

node_exporter, version 1.5.0

node_exporter command line flags

--log.level=debug --collector.systemd --web.listen-address=:9100

node_exporter log output

2024-02-08T10:30:58.944877+00:00 vsa12424973 node_exporter[12644]: ts=2024-02-08T10:30:58.944Z caller=filesystem_linux.go:137 level=debug collector=filesystem msg="Mount point timed out, it is being labeled as stuck and will not be monitored" mountpoint=/test_nfs

Are you running node_exporter in Docker?

NO

What did you do that produced an error?

Not a bug, but expect a new feature
Differentiate value in node_filesystem_device_error metrics

What did you expect to see?

node_filesystem_device_error{device="...",fstype="nfs4",mountpoint="/test_nfs"} 255

What did you see instead?

node_filesystem_device_error{device="...",fstype="nfs4",mountpoint="/test_nfs"} 1

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