{"action":"opened","issue":{"url":"https://api.github.com/repos/google/cadvisor/issues/679","labels_url":"https://api.github.com/repos/google/cadvisor/issues/679/labels{/name}","comments_url":"https://api.github.com/repos/google/cadvisor/issues/679/comments","events_url":"https://api.github.com/repos/google/cadvisor/issues/679/events","html_url":"https://github.com/google/cadvisor/issues/679","id":73333696,"number":679,"title":"Cadvisor and influxdb,What is the correct way to plot the CPU utilization per container?","user":{"login":"huikang","id":463631,"avatar_url":"https://avatars.githubusercontent.com/u/463631?v=3","gravatar_id":"","url":"https://api.github.com/users/huikang","html_url":"https://github.com/huikang","followers_url":"https://api.github.com/users/huikang/followers","following_url":"https://api.github.com/users/huikang/following{/other_user}","gists_url":"https://api.github.com/users/huikang/gists{/gist_id}","starred_url":"https://api.github.com/users/huikang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huikang/subscriptions","organizations_url":"https://api.github.com/users/huikang/orgs","repos_url":"https://api.github.com/users/huikang/repos","events_url":"https://api.github.com/users/huikang/events{/privacy}","received_events_url":"https://api.github.com/users/huikang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-05T14:39:57Z","updated_at":"2015-05-05T14:39:57Z","closed_at":null,"body":"On a Docker host, I have 4 containers running including cadvisor and the stats are imported to influxdb.\r\n\r\n(Result 1: cpu utilization of all the containers) The query of \"select cpu_cumulative_usage from stats limit 600\" yields\r\n\r\n![cpu_all](https://cloud.githubusercontent.com/assets/463631/7474941/a93afc38-f312-11e4-99c8-45ddeac67d37.png)\r\n \r\n\r\n(Result 2: cpu utilization of one container) The query of\r\n\"select cpu_cumulative_usage from stats  where container_name='mysql' limit 600\"\r\nyields\r\n\r\n![cpu_one_container](https://cloud.githubusercontent.com/assets/463631/7474961/c697fd76-f312-11e4-8ce9-342d149af2ab.png)\r\n\r\nAs you see, result 2 seems not consider the difference and divide the time.\r\nSo the plot of result 2 does not look the same as in the cadvisor UI.\r\nI am wondering what is the correct way to plot the CPU utilization in influxdb\r\nfor individual containers. Thanks.\r\n"}}