Add runtime mem stats to server info (#11995)

Adds information about runtime+gc memory use.
This commit is contained in:
Klaus Post
2021-04-07 19:40:51 +02:00
committed by GitHub
parent d267d152ba
commit 48c5e7e5b6
3 changed files with 4 additions and 15 deletions

View File

@@ -271,21 +271,6 @@ type ServerHTTPStats struct {
TotalS3RejectedInvalid uint64 `json:"totalS3RejectedInvalid"`
}
// ServerInfoData holds storage, connections and other
// information of a given server.
type ServerInfoData struct {
ConnStats ServerConnStats `json:"network"`
HTTPStats ServerHTTPStats `json:"http"`
Properties ServerProperties `json:"server"`
}
// ServerInfo holds server information result of one node
type ServerInfo struct {
Error string `json:"error"`
Addr string `json:"addr"`
Data *ServerInfoData `json:"data"`
}
// StorageInfoHandler - GET /minio/admin/v3/storageinfo
// ----------
// Get server information