Just looking at the source for the filesystem collector in the Node
Exporter, the detailed errors in case of a failed statfs() are logged at
debug level, so you'd have to set --log.level=debug to see that:

-
https://github.com/prometheus/node_exporter/blob/fa4edd700ebc1b3614bcd953c215d3f2ab2e0b35/collector/filesystem_linux.go#L66

-
https://github.com/prometheus/node_exporter/blob/fa4edd700ebc1b3614bcd953c215d3f2ab2e0b35/collector/filesystem_linux.go#L94

On Sat, Apr 18, 2020 at 6:46 PM Yagyansh S. Kumar <[email protected]>
wrote:

> Adding to this, I noticed something very strange. I am seeing that
> node_filesystem_device_error gives 1, but when I login into the servers,
> everything seems to be fine with the NFS mount. Even the statfs call is
> successful.
> Is this a bug? If not, how to know the reason because of which
> node_filesystem_device_error == 1 even though the statfs call is successful.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/003ffd1b-9058-4219-b63b-ef88c9bdb6e3%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/003ffd1b-9058-4219-b63b-ef88c9bdb6e3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CA%2BT6YoxXng8RheCwuLMbh6hey359OsV1O-34Agfk%2B2WW7b0URw%40mail.gmail.com.

Reply via email to