mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Add prometheus endpoint to support total Used storageInfo (#5988)
Since we deprecated Total/Free we don't need to update prometheus with those metrics. This PR also adds support for caching implementation.
This commit is contained in:
committed by
kannappanr
parent
dd0db526d9
commit
5282639f3c
@@ -188,7 +188,7 @@ func printStorageInfo(storageInfo StorageInfo) {
|
||||
}
|
||||
}
|
||||
|
||||
func printCacheStorageInfo(storageInfo StorageInfo) {
|
||||
func printCacheStorageInfo(storageInfo CacheStorageInfo) {
|
||||
msg := fmt.Sprintf("%s %s Free, %s Total", colorBlue("Cache Capacity:"),
|
||||
humanize.IBytes(uint64(storageInfo.Free)),
|
||||
humanize.IBytes(uint64(storageInfo.Total)))
|
||||
|
||||
Reference in New Issue
Block a user