Skip to content

Commit

Permalink
Merge branch 'develop-apiv3.5' of github.com:gedge-platform/gm-center…
Browse files Browse the repository at this point in the history
… into develop-apiv3.5
  • Loading branch information
taking committed Nov 9, 2023
2 parents 83e2980 + 4269f37 commit c8ecc68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gmc_api_gateway/app/controller/callListModel.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func GetModelList(params model.PARAMS) (DataList []string, err error) {
}
return DataList, err
} else if params.Project != "" && params.Workspace != "" {
// log.Println("#################Project List")
log.Println("#################Project List")
project := GetDBProject(params)
Clusters := project.Selectcluster
for c, _ := range Clusters {
Expand Down
3 changes: 2 additions & 1 deletion gmc_api_gateway/app/controller/monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ var namespaceMetric = map[string]string{
"namespace_cpu": "round(sum(sum(irate(container_cpu_usage_seconds_total{job='kubelet',pod!='',image!='', $1}[5m]))by(namespace,pod,cluster))by(namespace,cluster),0.001)",
"namespace_memory": "round(sum(sum(container_memory_rss{job='kubelet',pod!='',image!='', $1})by(namespace,pod,cluster))by(namespace,cluster)/1024/1024/1024,0.1)",
"namespace_pod_count": "count(count(container_spec_memory_reservation_limit_bytes{pod!='', $1})by(pod,cluster,namespace))by(cluster,namespace)",
"namespace_check": "kube_namespace_labels{$1} OR vector(0)",
"namespace_check" : "kube_namespace_status_phase{phase='Active',$1} OR vector(0)",
// "namespace_check": "kube_namespace_labels{$1} OR vector(0)",
}

var podMetric = map[string]string{
Expand Down

0 comments on commit c8ecc68

Please sign in to comment.