fix: calculate prometheus disks_offline/disks_total correctly (#11215)

fixes #11196
This commit is contained in:
Harshavardhana
2021-01-04 09:42:09 -08:00
committed by GitHub
parent 153d4be032
commit e7ae49f9c9
13 changed files with 21 additions and 42 deletions

View File

@@ -82,7 +82,7 @@ type ObjectLayer interface {
CrawlAndGetDataUsage(ctx context.Context, bf *bloomFilter, updates chan<- DataUsageInfo) error
BackendInfo() BackendInfo
StorageInfo(ctx context.Context, local bool) (StorageInfo, []error) // local queries only local disks
StorageInfo(ctx context.Context) (StorageInfo, []error) // local queries only local disks
// Bucket operations.
MakeBucketWithLocation(ctx context.Context, bucket string, opts BucketOptions) error