aboutsummaryrefslogtreecommitdiff
path: root/collector/nfsd_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'collector/nfsd_linux.go')
-rw-r--r--collector/nfsd_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/collector/nfsd_linux.go b/collector/nfsd_linux.go
index 234e1da..b6f2f8e 100644
--- a/collector/nfsd_linux.go
+++ b/collector/nfsd_linux.go
@@ -63,7 +63,7 @@ func (c *nfsdCollector) Update(ch chan<- prometheus.Metric) error {
63 if err != nil { 63 if err != nil {
64 if os.IsNotExist(err) { 64 if os.IsNotExist(err) {
65 level.Debug(c.logger).Log("msg", "Not collecting NFSd metrics", "err", err) 65 level.Debug(c.logger).Log("msg", "Not collecting NFSd metrics", "err", err)
66 return nil 66 return ErrNoData
67 } 67 }
68 return fmt.Errorf("failed to retrieve nfsd stats: %w", err) 68 return fmt.Errorf("failed to retrieve nfsd stats: %w", err)
69 } 69 }