{"action":"created","issue":{"url":"https://api.github.com/repos/Scalingo/acadock-monitoring/issues/1","labels_url":"https://api.github.com/repos/Scalingo/acadock-monitoring/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Scalingo/acadock-monitoring/issues/1/comments","events_url":"https://api.github.com/repos/Scalingo/acadock-monitoring/issues/1/events","html_url":"https://github.com/Scalingo/acadock-monitoring/issues/1","id":72692964,"number":1,"title":"/cpu is not working","user":{"login":"servomac","id":8616889,"avatar_url":"https://avatars.githubusercontent.com/u/8616889?v=3","gravatar_id":"","url":"https://api.github.com/users/servomac","html_url":"https://github.com/servomac","followers_url":"https://api.github.com/users/servomac/followers","following_url":"https://api.github.com/users/servomac/following{/other_user}","gists_url":"https://api.github.com/users/servomac/gists{/gist_id}","starred_url":"https://api.github.com/users/servomac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/servomac/subscriptions","organizations_url":"https://api.github.com/users/servomac/orgs","repos_url":"https://api.github.com/users/servomac/repos","events_url":"https://api.github.com/users/servomac/events{/privacy}","received_events_url":"https://api.github.com/users/servomac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-02T20:24:15Z","updated_at":"2015-05-15T23:58:26Z","closed_at":null,"body":"Hi people, nice work here! I have been playing with your API, but i'm unable to obtain data for my containers CPU usage. Memory and network usage returns correct data, but cpu is just always at 0 (while docker stats and cAdvisor show the real usage correctly).\r\n\r\nMy set up:\r\n\r\n```\r\n docker run -v /sys/fs/cgroup:/host/cgroup:ro         -e CGROUP_DIR=/host/cgroup \\\r\n            -v /proc:/host/proc:ro                    -e PROC_DIR=/host/proc \\\r\n            -v /var/run/docker.sock:/host/docker.sock -e DOCKER_URL=unix:///host/docker.sock \\\r\n            -p 4244:4244 --privileged --pid=host \\\r\n            --name acadock -d scalingo/acadock-monitoring\r\n```\r\n```\r\n$ docker --version\r\nDocker version 1.5.0, build a8a31ef\r\n```\r\n\r\nAn example of the issue:\r\n\r\n```\r\n$ docker ps | grep redis\r\n396e7635c892        redis:3                              \"/entrypoint.sh redi   28 hours ago        Up 28 hours         0.0.0.0:6379->6379/tcp   redis            \r\n```\r\n\r\n```\r\n$ docker stats 396e7635c892\r\nCONTAINER           CPU %               MEM USAGE/LIMIT       MEM %               NET I/O\r\n396e7635c892        0.14%               3.301 MiB/3.756 GiB   0.09%               31.46 MiB/26.62 MiB\r\n```\r\n\r\n```\r\n$ curl -L http://localhost:4244/containers/396e7635c892/mem\r\n3465216\r\n```\r\n\r\n```\r\n$ curl -L http://localhost:4244/containers/396e7635c892/net\r\n{\"Interface\":\"eth0\",\"Received\":{\"Bytes\":33051932,\"Packets\":163174,\"Drop\":0,\"Errs\":0,\"Fifo\":0,\"Frame\":0,\"Compressed\":0,\"Multicast\":0},\"Transmit\":{\"Bytes\":27964385,\"Packets\":169496,\"Drop\":0,\"Errs\":0,\"Fifo\":0,\"Frame\":0,\"Compressed\":0,\"Multicast\":0},\"RxBps\":706,\"TxBps\":669}\r\n```\r\n\r\n```\r\n$ curl -L http://localhost:4244/containers/396e7635c892/cpu\r\n0\r\n```\r\n\r\nAnd the result is always the same, 0. Even with other containers. Any hint?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Scalingo/acadock-monitoring/issues/comments/102551328","html_url":"https://github.com/Scalingo/acadock-monitoring/issues/1#issuecomment-102551328","issue_url":"https://api.github.com/repos/Scalingo/acadock-monitoring/issues/1","id":102551328,"user":{"login":"Soulou","id":329969,"avatar_url":"https://avatars.githubusercontent.com/u/329969?v=3","gravatar_id":"","url":"https://api.github.com/users/Soulou","html_url":"https://github.com/Soulou","followers_url":"https://api.github.com/users/Soulou/followers","following_url":"https://api.github.com/users/Soulou/following{/other_user}","gists_url":"https://api.github.com/users/Soulou/gists{/gist_id}","starred_url":"https://api.github.com/users/Soulou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soulou/subscriptions","organizations_url":"https://api.github.com/users/Soulou/orgs","repos_url":"https://api.github.com/users/Soulou/repos","events_url":"https://api.github.com/users/Soulou/events{/privacy}","received_events_url":"https://api.github.com/users/Soulou/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T23:58:26Z","updated_at":"2015-05-15T23:58:26Z","body":"@servomac @danlamanna got it, It will be fixed asap."}}