Merge pull request #5697 from vmarmol/doc

Correct documentation about stats arguments.
This commit is contained in:
Yu-Ju Hong
2015-03-20 14:22:33 -07:00

View File

@@ -655,7 +655,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {
// serveStats implements stats logic.
func (s *Server) serveStats(w http.ResponseWriter, req *http.Request) {
// /stats/<podfullname>/<containerName> or /stats/<namespace>/<podfullname>/<uid>/<containerName>
// /stats/<pod name>/<container name> or /stats/<namespace>/<pod name>/<uid>/<container name>
components := strings.Split(strings.TrimPrefix(path.Clean(req.URL.Path), "/"), "/")
var stats *cadvisorApi.ContainerInfo
var err error