From 2f647a34789673b1bebc4320a43ad25bd6c96ace Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Thu, 8 Jul 2021 19:43:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9C=8B=E6=9D=BF=E5=A2=9E=E5=8A=A0=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E7=9B=AE=E5=BD=95=E7=94=A8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/rpc/services/service_server_stat_board.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/internal/rpc/services/service_server_stat_board.go b/internal/rpc/services/service_server_stat_board.go index cef6d494..8de2404a 100644 --- a/internal/rpc/services/service_server_stat_board.go +++ b/internal/rpc/services/service_server_stat_board.go @@ -526,6 +526,17 @@ func (this *ServerStatBoardService) ComposeServerStatNodeBoard(ctx context.Conte }) } + cacheDirValues, err := models.SharedNodeValueDAO.ListValues(tx, "node", req.NodeId, nodeconfigs.NodeValueItemCacheDir, nodeconfigs.NodeValueRangeMinute) + if err != nil { + return nil, err + } + for _, v := range cacheDirValues { + result.CacheDirsValues = append(result.CacheDirsValues, &pb.NodeValue{ + ValueJSON: []byte(v.Value), + CreatedAt: int64(v.CreatedAt), + }) + } + // 指标 var clusterId = int64(node.ClusterId) clusterMetricItems, err := models.SharedNodeClusterMetricItemDAO.FindAllClusterItems(tx, clusterId, serverconfigs.MetricItemCategoryHTTP)