From 63a511691079de70f2b742fb05270d5652de7fb5 Mon Sep 17 00:00:00 2001 From: zhangwei <894646498@qq.com> Date: Thu, 28 Mar 2024 16:32:48 +0800 Subject: [PATCH] prometheus metrics Former-commit-id: b21e2651f1fb2cfebdea83ae1ebe850ede0905ab --- api/internal/logic/core/clustersloadlogic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/internal/logic/core/clustersloadlogic.go b/api/internal/logic/core/clustersloadlogic.go index 8f3ac6c1..c66892c8 100644 --- a/api/internal/logic/core/clustersloadlogic.go +++ b/api/internal/logic/core/clustersloadlogic.go @@ -43,7 +43,7 @@ func (l *ClustersLoadLogic) ClustersLoad(req *types.ClustersLoadReq) (resp *type //} //resp.Data = remoteResp.Data resp = &types.ClustersLoadResp{} - metrics := []string{"cluster_cpu_utilisation", "cluster_cpu_avail", "cluster_cpu_total", "cluster_memory_total", "cluster_memory_avail", "cluster_memory_utilisation", "cluster_memory_utilisation", "cluster_memory_avail", "cluster_memory_total"} + metrics := []string{"cluster_cpu_utilisation", "cluster_cpu_avail", "cluster_cpu_total", "cluster_memory_total", "cluster_memory_avail", "cluster_memory_utilisation", "cluster_disk_utilisation", "cluster_disk_avail", "cluster_disk_total"} result := l.svcCtx.PromClient.GetNamedMetrics(metrics, time.Now(), tracker.ClusterOption{AdapterId: req.AdapterId, ClusterName: req.ClusterName}) resp.Data = result return resp, nil