Skip to content

Commit

Permalink
Merge pull request #303 from olagacek/master
Browse files Browse the repository at this point in the history
Pass only_cpu_and_memory parameter to Summary API call
  • Loading branch information
k8s-ci-robot authored Aug 26, 2019
2 parents 47a68d2 + 1a8b797 commit 122de0a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/sources/summary/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 122de0a

Please sign in to comment.