prometheus metrics

Former-commit-id: b21e2651f1fb2cfebdea83ae1ebe850ede0905ab
This commit is contained in:
zhangwei 2024-03-28 16:32:48 +08:00
parent b1b7fbe0e2
commit 63a5116910
1 changed files with 1 additions and 1 deletions

View File

@ -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