Skip to content

Commit

Permalink
MOD: surface filesystem device error prometheus#2918
Browse files Browse the repository at this point in the history
  • Loading branch information
PamelaMei-SAP committed Feb 11, 2024
1 parent d54744a commit ff92bf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions collector/filesystem_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ func (c *filesystemCollector) processStat(labels filesystemLabels) filesystemSta
stuckMountsMtx.Unlock()

if err != nil {
labels.device_error = err.Error()
level.Debug(c.logger).Log("msg", "Error on statfs() system call", "rootfs", rootfsFilePath(labels.mountPoint), "err", err)
return filesystemStats{
labels: labels,
Expand Down

0 comments on commit ff92bf3

Please # to comment.