From 59daccf67c952b8b6b3b6a8f80d62bccf1ebf0c0 Mon Sep 17 00:00:00 2001 From: bigsheeper Date: Wed, 13 Oct 2021 21:20:33 +0800 Subject: [PATCH] Fix get memory info in getSystemInfoMetrics (#9809) Signed-off-by: bigsheeper --- internal/querynode/metrics_info.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/querynode/metrics_info.go b/internal/querynode/metrics_info.go index a3a72a09e7..b793e171c7 100644 --- a/internal/querynode/metrics_info.go +++ b/internal/querynode/metrics_info.go @@ -35,8 +35,8 @@ func getSystemInfoMetrics(ctx context.Context, req *milvuspb.GetMetricsRequest, IP: node.session.Address, CPUCoreCount: metricsinfo.GetCPUCoreCount(false), CPUCoreUsage: metricsinfo.GetCPUUsage(), - Memory: uint64(getUsedMemory(node.historical.replica, node.streaming.replica)), - MemoryUsage: uint64(getTotalMemory()), + Memory: uint64(getTotalMemory()), + MemoryUsage: uint64(getUsedMemory(node.historical.replica, node.streaming.replica)), Disk: metricsinfo.GetDiskCount(), DiskUsage: metricsinfo.GetDiskUsage(), },