Skip to content

Commit 122de0a

Browse files
authored
Merge pull request kubernetes-sigs#303 from olagacek/master
Pass only_cpu_and_memory parameter to Summary API call
2 parents 47a68d2 + 1a8b797 commit 122de0a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/sources/summary/client.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ func (kc *kubeletClient) GetSummary(ctx context.Context, host string) (*stats.Su
8989
scheme = "http"
9090
}
9191
url := url.URL{
92-
Scheme: scheme,
93-
Host: net.JoinHostPort(host, strconv.Itoa(kc.port)),
94-
Path: "/stats/summary/",
92+
Scheme: scheme,
93+
Host: net.JoinHostPort(host, strconv.Itoa(kc.port)),
94+
Path: "/stats/summary",
95+
RawQuery: "only_cpu_and_memory=true",
9596
}
9697

9798
req, err := http.NewRequest("GET", url.String(), nil)

0 commit comments

Comments
 (0)