{"action":"created","issue":{"url":"https://api.github.com/repos/netdata/netdata/issues/2714","repository_url":"https://api.github.com/repos/netdata/netdata","labels_url":"https://api.github.com/repos/netdata/netdata/issues/2714/labels{/name}","comments_url":"https://api.github.com/repos/netdata/netdata/issues/2714/comments","events_url":"https://api.github.com/repos/netdata/netdata/issues/2714/events","html_url":"https://github.com/netdata/netdata/pull/2714","id":256523051,"node_id":"MDExOlB1bGxSZXF1ZXN0MTQwMjE1OTI2","number":2714,"title":"RFC: implement simple 'turbostat' python.d chart module","user":{"login":"tycho","id":29616,"node_id":"MDQ6VXNlcjI5NjE2","avatar_url":"https://avatars0.githubusercontent.com/u/29616?v=4","gravatar_id":"","url":"https://api.github.com/users/tycho","html_url":"https://github.com/tycho","followers_url":"https://api.github.com/users/tycho/followers","following_url":"https://api.github.com/users/tycho/following{/other_user}","gists_url":"https://api.github.com/users/tycho/gists{/gist_id}","starred_url":"https://api.github.com/users/tycho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tycho/subscriptions","organizations_url":"https://api.github.com/users/tycho/orgs","repos_url":"https://api.github.com/users/tycho/repos","events_url":"https://api.github.com/users/tycho/events{/privacy}","received_events_url":"https://api.github.com/users/tycho/received_events","type":"User","site_admin":false},"labels":[{"id":1065921486,"node_id":"MDU6TGFiZWwxMDY1OTIxNDg2","url":"https://api.github.com/repos/netdata/netdata/labels/area/external/python","name":"area/external/python","color":"0f34c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-09-10T16:48:40Z","updated_at":"2018-12-17T22:42:44Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/netdata/netdata/pulls/2714","html_url":"https://github.com/netdata/netdata/pull/2714","diff_url":"https://github.com/netdata/netdata/pull/2714.diff","patch_url":"https://github.com/netdata/netdata/pull/2714.patch"},"body":"**This isn't intended to be merged for now.** I'd like @ktsaou to see this and try it out, though, since we were looking at turbostat recently.\r\n\r\nThis module requires that `turbostat` be installed. It also requires that `/dev/cpu/*/msr` be readable by whatever user netdata runs the Python modules under, and that `turbostat` have the `CAP_SYS_RAWIO` capability. This is sufficient for testing:\r\n```\r\n# setcap cap_sys_rawio=ep /usr/bin/turbostat\r\n# chmod +r /dev/cpu/*/msr\r\n```\r\n\r\nYou can see this in action here: https://netdata.uplinklabs.net/#menu_cpu_submenu_turbostat;theme=slate;help=true\r\n\r\nThere are a bunch of other metrics we could plug into this, but I wanted to proof-of-concept this first. In whatever implementation we end up using, I'd prefer if we don't repeatedly shell out to turbostat. Ideally we'd just start turbostat and continuously stream and parse its output. Unfortunately the output modes for turbostat other than `--Dump` aren't very machine-readable."},"comment":{"url":"https://api.github.com/repos/netdata/netdata/issues/comments/448026899","html_url":"https://github.com/netdata/netdata/pull/2714#issuecomment-448026899","issue_url":"https://api.github.com/repos/netdata/netdata/issues/2714","id":448026899,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODAyNjg5OQ==","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"created_at":"2018-12-17T22:42:44Z","updated_at":"2018-12-17T22:42:44Z","author_association":"NONE","body":"\n![Codacy](https://app.codacy.com/assets/images/favicon.png) Here is an overview of what got changed by this pull request:\n\n\n```diff\n\nIssues\n======\n- Added 7\n           \n```\n\n\nSee the complete overview on [Codacy](https://app.codacy.com/app/paulfantom/netdata/pullRequest?prid=2234595&bid=8913171)\n        "}}
{"actor":{"display_login":"codacy-bot"}}