mirror of
https://github.com/digitalocean/ceph_exporter
synced 2025-02-22 06:16:49 +00:00
Merge pull request #64 from tserong/remove-no-pools-error
pool: remove error log when no pools present
This commit is contained in:
commit
f2a4404e28
@ -16,7 +16,6 @@ package collectors
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"log"
|
||||
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
@ -211,10 +210,6 @@ func (p *PoolUsageCollector) collect() error {
|
||||
return err
|
||||
}
|
||||
|
||||
if len(stats.Pools) < 1 {
|
||||
return errors.New("no pools found in the cluster to report stats on")
|
||||
}
|
||||
|
||||
for _, pool := range stats.Pools {
|
||||
p.UsedBytes.WithLabelValues(pool.Name).Set(pool.Stats.BytesUsed)
|
||||
p.RawUsedBytes.WithLabelValues(pool.Name).Set(pool.Stats.RawBytesUsed)
|
||||
|
Loading…
Reference in New Issue
Block a user