From 1a8b797c0d5935b40d2961fc3508cbf0d4049c66 Mon Sep 17 00:00:00 2001 From: Aleksandra Gacek Date: Thu, 22 Aug 2019 14:16:33 +0200 Subject: [PATCH] pass only_cpu_and_memory parameter to Summary API call --- pkg/sources/summary/client.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/sources/summary/client.go b/pkg/sources/summary/client.go index eafc37f89..9c8576a76 100644 --- a/pkg/sources/summary/client.go +++ b/pkg/sources/summary/client.go @@ -89,9 +89,10 @@ func (kc *kubeletClient) GetSummary(ctx context.Context, host string) (*stats.Su scheme = "http" } url := url.URL{ - Scheme: scheme, - Host: net.JoinHostPort(host, strconv.Itoa(kc.port)), - Path: "/stats/summary/", + Scheme: scheme, + Host: net.JoinHostPort(host, strconv.Itoa(kc.port)), + Path: "/stats/summary", + RawQuery: "only_cpu_and_memory=true", } req, err := http.NewRequest("GET", url.String(), nil)