diff --git a/collectors/beegfsmetaMetric.go b/collectors/beegfsmetaMetric.go index 530e322..39a9d9a 100644 --- a/collectors/beegfsmetaMetric.go +++ b/collectors/beegfsmetaMetric.go @@ -4,7 +4,6 @@ import ( "bufio" "bytes" "encoding/json" - "errors" "fmt" "io/ioutil" "os" @@ -131,7 +130,7 @@ func (m *BeegfsMetaCollector) Read(interval time.Duration, output chan lp.CCMetr } if len(mountpoints) == 0 { - return errors.New("Could not find any BeeGFS mountpoint") + return } for _, mountpoint := range mountpoints { diff --git a/collectors/beegfsstorageMetric.go b/collectors/beegfsstorageMetric.go index 4439a98..0dd1caf 100644 --- a/collectors/beegfsstorageMetric.go +++ b/collectors/beegfsstorageMetric.go @@ -4,7 +4,6 @@ import ( "bufio" "bytes" "encoding/json" - "errors" "fmt" "io/ioutil" "os" @@ -125,7 +124,7 @@ func (m *BeegfsStorageCollector) Read(interval time.Duration, output chan lp.CCM } } if len(mountpoints) == 0 { - return errors.New("Could not find any BeeGFS mountpoint") + return } // collects stats for each BeeGFS on Demand FS for _, mountpoint := range mountpoints {