mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
Add runtime mem stats to server info (#11995)
Adds information about runtime+gc memory use.
This commit is contained in:
@@ -21,6 +21,7 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
"runtime"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -316,6 +317,7 @@ type ServerProperties struct {
|
||||
Network map[string]string `json:"network,omitempty"`
|
||||
Disks []Disk `json:"drives,omitempty"`
|
||||
PoolNumber int `json:"poolNumber,omitempty"`
|
||||
MemStats runtime.MemStats `json:"mem_stats"`
|
||||
}
|
||||
|
||||
// DiskMetrics has the information about XL Storage APIs
|
||||
|
||||
Reference in New Issue
Block a user