mirror of
https://github.com/pgsty/minio.git
synced 2026-07-25 06:56:18 +03:00
fix: missing disk metrics when query metric api from peer (#17738)
This commit is contained in:
@@ -212,7 +212,7 @@ func (client *peerRESTClient) GetMetrics(ctx context.Context, t madmin.MetricTyp
|
|||||||
values := make(url.Values)
|
values := make(url.Values)
|
||||||
values.Set(peerRESTMetricsTypes, strconv.FormatUint(uint64(t), 10))
|
values.Set(peerRESTMetricsTypes, strconv.FormatUint(uint64(t), 10))
|
||||||
for disk := range opts.disks {
|
for disk := range opts.disks {
|
||||||
values.Set(peerRESTDisk, disk)
|
values.Add(peerRESTDisk, disk)
|
||||||
}
|
}
|
||||||
for host := range opts.hosts {
|
for host := range opts.hosts {
|
||||||
values.Add(peerRESTHost, host)
|
values.Add(peerRESTHost, host)
|
||||||
|
|||||||
Reference in New Issue
Block a user