mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 04:49:08 +08:00
Fix get memory info in getSystemInfoMetrics (#9809)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
parent
26a365c06d
commit
59daccf67c
@ -35,8 +35,8 @@ func getSystemInfoMetrics(ctx context.Context, req *milvuspb.GetMetricsRequest,
|
|||||||
IP: node.session.Address,
|
IP: node.session.Address,
|
||||||
CPUCoreCount: metricsinfo.GetCPUCoreCount(false),
|
CPUCoreCount: metricsinfo.GetCPUCoreCount(false),
|
||||||
CPUCoreUsage: metricsinfo.GetCPUUsage(),
|
CPUCoreUsage: metricsinfo.GetCPUUsage(),
|
||||||
Memory: uint64(getUsedMemory(node.historical.replica, node.streaming.replica)),
|
Memory: uint64(getTotalMemory()),
|
||||||
MemoryUsage: uint64(getTotalMemory()),
|
MemoryUsage: uint64(getUsedMemory(node.historical.replica, node.streaming.replica)),
|
||||||
Disk: metricsinfo.GetDiskCount(),
|
Disk: metricsinfo.GetDiskCount(),
|
||||||
DiskUsage: metricsinfo.GetDiskUsage(),
|
DiskUsage: metricsinfo.GetDiskUsage(),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user