Correct documentation about stats arguments.

This commit is contained in:
Victor Marmol 2015-03-19 22:11:04 -07:00
parent a8f2cee8c5
commit fc8f4411ef

View File

@ -653,7 +653,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