mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 12:40:24 +03:00
add additional metrics per disk API latency, API call counts #11250)
``` mc admin info --json ``` provides these details, for now, we shall eventually expose this at Prometheus level eventually. Co-authored-by: Harshavardhana <harsha@minio.io>
This commit is contained in:
@@ -37,9 +37,18 @@ type DiskInfo struct {
|
||||
Endpoint string
|
||||
MountPath string
|
||||
ID string
|
||||
Metrics DiskMetrics
|
||||
Error string // carries the error over the network
|
||||
}
|
||||
|
||||
// DiskMetrics has the information about XL Storage APIs
|
||||
// the number of calls of each API and the moving average of
|
||||
// the duration of each API.
|
||||
type DiskMetrics struct {
|
||||
APILatencies map[string]string `json:"apiLatencies,omitempty"`
|
||||
APICalls map[string]uint64 `json:"apiCalls,omitempty"`
|
||||
}
|
||||
|
||||
// VolsInfo is a collection of volume(bucket) information
|
||||
type VolsInfo []VolInfo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user