@ -102,7 +102,7 @@ func (c *zfsCollector) updatePoolStats(ch chan<- prometheus.Metric) error {
for _ , zpoolPath := range zpoolObjsetPaths {
file , err := os . Open ( zpoolPath )
if err != nil {
// this file should exist, but there is a race where an exporting pool can remove the files -- ok to ignore
// This file should exist, but there is a race where an exporting pool can remove the files. Ok to ignore.
level . Debug ( c . logger ) . Log ( "msg" , "Cannot open file for reading" , "path" , zpoolPath )
return errZFSNotAvailable
}
@ -122,13 +122,14 @@ func (c *zfsCollector) updatePoolStats(ch chan<- prometheus.Metric) error {
}
if zpoolStatePaths == nil {
level . Debug ( c . logger ) . Log ( "msg" , "Not found pool state files" )
level . Debug ( c . logger ) . Log ( "msg" , "No pool state files found" )
return nil
}
for _ , zpoolPath := range zpoolStatePaths {
file , err := os . Open ( zpoolPath )
if err != nil {
// this file should exist, but there is a race where an exporting pool can remove the files -- ok to ignore
// This file should exist, but there is a race where an exporting pool can remove the files. Ok to ignore.
level . Debug ( c . logger ) . Log ( "msg" , "Cannot open file for reading" , "path" , zpoolPath )
return errZFSNotAvailable
}