minio/cmd/gateway
Anis Elleuch d4dcf1d722
metrics: Use StorageInfo() instead to have consistent info (#9006)
Metrics used to have its own code to calculate offline disks.
StorageInfo() was avoided because it is an expensive operation
by sending calls to all nodes.

To make metrics & server info share the same code, a new
argument `local` is added to StorageInfo() so it will only
query local disks when needed.

Metrics now calls StorageInfo() as server info handler does
but with the local flag set to false.

Co-authored-by: Praveen raj Mani <praveen@minio.io>
Co-authored-by: Harshavardhana <harsha@minio.io>
2020-02-20 09:21:33 +05:30
..
azure metrics: Use StorageInfo() instead to have consistent info (#9006) 2020-02-20 09:21:33 +05:30
b2 metrics: Use StorageInfo() instead to have consistent info (#9006) 2020-02-20 09:21:33 +05:30
gcs metrics: Use StorageInfo() instead to have consistent info (#9006) 2020-02-20 09:21:33 +05:30
hdfs metrics: Use StorageInfo() instead to have consistent info (#9006) 2020-02-20 09:21:33 +05:30
nas metrics: Use StorageInfo() instead to have consistent info (#9006) 2020-02-20 09:21:33 +05:30
oss metrics: Use StorageInfo() instead to have consistent info (#9006) 2020-02-20 09:21:33 +05:30
s3 metrics: Use StorageInfo() instead to have consistent info (#9006) 2020-02-20 09:21:33 +05:30
gateway.go Implement S3-HDFS gateway (#7440) 2019-04-17 09:52:08 -07:00