{"action":"created","issue":{"url":"https://api.github.com/repos/google/cadvisor/issues/545","labels_url":"https://api.github.com/repos/google/cadvisor/issues/545/labels{/name}","comments_url":"https://api.github.com/repos/google/cadvisor/issues/545/comments","events_url":"https://api.github.com/repos/google/cadvisor/issues/545/events","html_url":"https://github.com/google/cadvisor/pull/545","id":59240735,"number":545,"title":"[WIP] Provide cadvisor stats as prometheus metrics","user":{"login":"discordianfish","id":275966,"avatar_url":"https://avatars.githubusercontent.com/u/275966?v=3","gravatar_id":"","url":"https://api.github.com/users/discordianfish","html_url":"https://github.com/discordianfish","followers_url":"https://api.github.com/users/discordianfish/followers","following_url":"https://api.github.com/users/discordianfish/following{/other_user}","gists_url":"https://api.github.com/users/discordianfish/gists{/gist_id}","starred_url":"https://api.github.com/users/discordianfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discordianfish/subscriptions","organizations_url":"https://api.github.com/users/discordianfish/orgs","repos_url":"https://api.github.com/users/discordianfish/repos","events_url":"https://api.github.com/users/discordianfish/events{/privacy}","received_events_url":"https://api.github.com/users/discordianfish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-27T14:13:21Z","updated_at":"2015-02-27T14:13:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/google/cadvisor/pulls/545","html_url":"https://github.com/google/cadvisor/pull/545","diff_url":"https://github.com/google/cadvisor/pull/545.diff","patch_url":"https://github.com/google/cadvisor/pull/545.patch"},"body":"This is WIP and provided for discussion:\r\n\r\n- name is aliases joined by , and definitely not what we want: Ideas to solve that? We can:\r\n  - either set the same metric multiple times for each aliases\r\n  - or have explicit notion of 'docker name' vs 'docker id' instead if the aliases list\r\n- It doesn't support image name as metric dimension since I'm not sure how to get this\r\n- Unsure about package structure: I didn't use prometheus/ but exporter/ because a) it might not be the only exporter? b) the import path in main would clash with client_golang/prometheus\r\n- No tests; Will look into that once we agreed on the general form\r\n- Usage is in seconds, not percent. Not sure what's better"},"comment":{"url":"https://api.github.com/repos/google/cadvisor/issues/comments/76399988","html_url":"https://github.com/google/cadvisor/pull/545#issuecomment-76399988","issue_url":"https://api.github.com/repos/google/cadvisor/issues/545","id":76399988,"user":{"login":"googlebot","id":5384588,"avatar_url":"https://avatars.githubusercontent.com/u/5384588?v=3","gravatar_id":"","url":"https://api.github.com/users/googlebot","html_url":"https://github.com/googlebot","followers_url":"https://api.github.com/users/googlebot/followers","following_url":"https://api.github.com/users/googlebot/following{/other_user}","gists_url":"https://api.github.com/users/googlebot/gists{/gist_id}","starred_url":"https://api.github.com/users/googlebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googlebot/subscriptions","organizations_url":"https://api.github.com/users/googlebot/orgs","repos_url":"https://api.github.com/users/googlebot/repos","events_url":"https://api.github.com/users/googlebot/events{/privacy}","received_events_url":"https://api.github.com/users/googlebot/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T14:13:22Z","updated_at":"2015-02-27T14:13:22Z","body":"Thanks for your pull request.\n\nIt looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at <https://cla.developers.google.com/>.\n\nIf you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address.  Check the [information on your CLA](https://cla.developers.google.com/clas) or see this help article on [setting the email on your git commits](https://help.github.com/articles/setting-your-email-in-git/).\n\nOnce you've done that, please reply here to let us know.  If you signed the CLA as a corporation, please let us know the company's name.\n\n<!-- need_sender_cla -->"}}