{"action":"created","issue":{"url":"https://api.github.com/repos/benchflow/collectors/issues/1","labels_url":"https://api.github.com/repos/benchflow/collectors/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/benchflow/collectors/issues/1/comments","events_url":"https://api.github.com/repos/benchflow/collectors/issues/1/events","html_url":"https://github.com/benchflow/collectors/issues/1","id":107815331,"number":1,"title":"Add a collector that collects and stores the Container Stats from the Docker Stats API","user":{"login":"VincenzoFerme","id":7163641,"avatar_url":"https://avatars.githubusercontent.com/u/7163641?v=3","gravatar_id":"","url":"https://api.github.com/users/VincenzoFerme","html_url":"https://github.com/VincenzoFerme","followers_url":"https://api.github.com/users/VincenzoFerme/followers","following_url":"https://api.github.com/users/VincenzoFerme/following{/other_user}","gists_url":"https://api.github.com/users/VincenzoFerme/gists{/gist_id}","starred_url":"https://api.github.com/users/VincenzoFerme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VincenzoFerme/subscriptions","organizations_url":"https://api.github.com/users/VincenzoFerme/orgs","repos_url":"https://api.github.com/users/VincenzoFerme/repos","events_url":"https://api.github.com/users/VincenzoFerme/events{/privacy}","received_events_url":"https://api.github.com/users/VincenzoFerme/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/benchflow/collectors/labels/feature","name":"feature","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"VincenzoFerme","id":7163641,"avatar_url":"https://avatars.githubusercontent.com/u/7163641?v=3","gravatar_id":"","url":"https://api.github.com/users/VincenzoFerme","html_url":"https://github.com/VincenzoFerme","followers_url":"https://api.github.com/users/VincenzoFerme/followers","following_url":"https://api.github.com/users/VincenzoFerme/following{/other_user}","gists_url":"https://api.github.com/users/VincenzoFerme/gists{/gist_id}","starred_url":"https://api.github.com/users/VincenzoFerme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VincenzoFerme/subscriptions","organizations_url":"https://api.github.com/users/VincenzoFerme/orgs","repos_url":"https://api.github.com/users/VincenzoFerme/repos","events_url":"https://api.github.com/users/VincenzoFerme/events{/privacy}","received_events_url":"https://api.github.com/users/VincenzoFerme/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/benchflow/collectors/milestones/1","html_url":"https://github.com/benchflow/collectors/milestones/0.0.1","labels_url":"https://api.github.com/repos/benchflow/collectors/milestones/1/labels","id":1319306,"number":1,"title":"0.0.1","description":"","creator":{"login":"VincenzoFerme","id":7163641,"avatar_url":"https://avatars.githubusercontent.com/u/7163641?v=3","gravatar_id":"","url":"https://api.github.com/users/VincenzoFerme","html_url":"https://github.com/VincenzoFerme","followers_url":"https://api.github.com/users/VincenzoFerme/followers","following_url":"https://api.github.com/users/VincenzoFerme/following{/other_user}","gists_url":"https://api.github.com/users/VincenzoFerme/gists{/gist_id}","starred_url":"https://api.github.com/users/VincenzoFerme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VincenzoFerme/subscriptions","organizations_url":"https://api.github.com/users/VincenzoFerme/orgs","repos_url":"https://api.github.com/users/VincenzoFerme/repos","events_url":"https://api.github.com/users/VincenzoFerme/events{/privacy}","received_events_url":"https://api.github.com/users/VincenzoFerme/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":11,"state":"open","created_at":"2015-09-22T21:25:19Z","updated_at":"2015-11-30T16:30:40Z","due_on":"2015-12-05T23:00:00Z","closed_at":null},"comments":3,"created_at":"2015-09-22T22:28:31Z","updated_at":"2015-12-01T17:11:10Z","closed_at":null,"body":"The required functionalities are:\r\n\r\n1. it must work from inside a container;\r\n2. it must collect the Stats of a list of containers identified by names and provided through an Environment variables. The containers's name are separated by \":\";\r\n3. it must store the stats on a tmp file local to the container;\r\n4. it must define APIs to decide when to start and stop the data collection;\r\n5. as for the other collectors: it must define APIs to zip the data and store them on a remote S3 compatible datastore;\r\n6. it must work with the less impact as possible on the monitored container performance.\r\n\r\nNotes about CPU usage:\r\n- Compute the percentage usage given the number of core assigned to a container, not according to the host\r\n- cpushares: can be a relative weight to other containers\r\n- total_usage: CPU percentage is not feasible because Docker enables many options to share the CPU with other containers. We use the total_usage instead.\r\n\r\nSome useful references:\r\n\r\n1. Powerful go-dockerclient and Stats API: https://godoc.org/github.com/fsouza/go-dockerclient#Client.Stats\r\n2. A test case that show how to use the API using the client at point 1: https://github.com/fsouza/go-dockerclient/blob/34eaaf52874d8ce5d57be011a4852eb83d950125/container_test.go#L1630\r\n2. Docker Stats APIs: https://docs.docker.com/reference/api/docker_remote_api_v1.20/#get-container-stats-based-on-resource-usage"},"comment":{"url":"https://api.github.com/repos/benchflow/collectors/issues/comments/161035925","html_url":"https://github.com/benchflow/collectors/issues/1#issuecomment-161035925","issue_url":"https://api.github.com/repos/benchflow/collectors/issues/1","id":161035925,"user":{"login":"VincenzoFerme","id":7163641,"avatar_url":"https://avatars.githubusercontent.com/u/7163641?v=3","gravatar_id":"","url":"https://api.github.com/users/VincenzoFerme","html_url":"https://github.com/VincenzoFerme","followers_url":"https://api.github.com/users/VincenzoFerme/followers","following_url":"https://api.github.com/users/VincenzoFerme/following{/other_user}","gists_url":"https://api.github.com/users/VincenzoFerme/gists{/gist_id}","starred_url":"https://api.github.com/users/VincenzoFerme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VincenzoFerme/subscriptions","organizations_url":"https://api.github.com/users/VincenzoFerme/orgs","repos_url":"https://api.github.com/users/VincenzoFerme/repos","events_url":"https://api.github.com/users/VincenzoFerme/events{/privacy}","received_events_url":"https://api.github.com/users/VincenzoFerme/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T17:11:10Z","updated_at":"2015-12-01T17:11:10Z","body":"@Cerfoglg see https://github.com/benchflow/monitors/issues/1#issuecomment-161034530"}}