mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 10:48:15 +08:00
commit
475d4bdc3f
@ -1762,7 +1762,7 @@ func (s *ServiceAction) GetPodContainerMemory(podNames []string) (map[string]map
|
||||
memoryUsageMap := make(map[string]map[string]string, 10)
|
||||
proxy := GetPrometheusProxy()
|
||||
queryName := strings.Join(podNames, "|")
|
||||
query := fmt.Sprintf(`container_memory_rss{pod_name=~"%s"}`, queryName)
|
||||
query := fmt.Sprintf(`container_memory_rss{pod=~"%s"}`, queryName)
|
||||
proQuery := strings.Replace(query, " ", "%20", -1)
|
||||
req, err := http.NewRequest("GET", fmt.Sprintf("http://127.0.0.1:9999/api/v1/query?query=%s", proQuery), nil)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user