{"action":"created","issue":{"url":"https://api.github.com/repos/DataDog/dd-agent/issues/2030","labels_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2030/labels{/name}","comments_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2030/comments","events_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2030/events","html_url":"https://github.com/DataDog/dd-agent/pull/2030","id":114698271,"number":2030,"title":"Add context switching and process count.","user":{"login":"gphat","id":45159,"avatar_url":"https://avatars.githubusercontent.com/u/45159?v=3","gravatar_id":"","url":"https://api.github.com/users/gphat","html_url":"https://github.com/gphat","followers_url":"https://api.github.com/users/gphat/followers","following_url":"https://api.github.com/users/gphat/following{/other_user}","gists_url":"https://api.github.com/users/gphat/gists{/gist_id}","starred_url":"https://api.github.com/users/gphat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gphat/subscriptions","organizations_url":"https://api.github.com/users/gphat/orgs","repos_url":"https://api.github.com/users/gphat/repos","events_url":"https://api.github.com/users/gphat/events{/privacy}","received_events_url":"https://api.github.com/users/gphat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-02T22:27:21Z","updated_at":"2015-11-05T15:51:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DataDog/dd-agent/pulls/2030","html_url":"https://github.com/DataDog/dd-agent/pull/2030","diff_url":"https://github.com/DataDog/dd-agent/pull/2030.diff","patch_url":"https://github.com/DataDog/dd-agent/pull/2030.patch"},"body":"# What's this PR do?\r\n\r\nAdds some new system metrics:\r\n* context switch count (for rates!)\r\n* processes created count (for rates!)\r\n\r\n# Motivation\r\n\r\nThese metrics are used in our existing setup and, from what I can tell, are not available today in Datadog agent. We can get them from specific processes via `process.yaml`, but not for the whole system!\r\n\r\n# Notes\r\n\r\n* **I expect to add more metrics to this but since these are core metrics I want to make sure I'm doing it right!**\r\n* I mucked around in here for a while trying to find if these metrics were present and didn't find them.\r\n* I don't have access — or need — to add other platforms but I imagine someone with some experience here could do this trivially.\r\n* I have not tested this at all."},"comment":{"url":"https://api.github.com/repos/DataDog/dd-agent/issues/comments/154100017","html_url":"https://github.com/DataDog/dd-agent/pull/2030#issuecomment-154100017","issue_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2030","id":154100017,"user":{"login":"gphat","id":45159,"avatar_url":"https://avatars.githubusercontent.com/u/45159?v=3","gravatar_id":"","url":"https://api.github.com/users/gphat","html_url":"https://github.com/gphat","followers_url":"https://api.github.com/users/gphat/followers","following_url":"https://api.github.com/users/gphat/following{/other_user}","gists_url":"https://api.github.com/users/gphat/gists{/gist_id}","starred_url":"https://api.github.com/users/gphat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gphat/subscriptions","organizations_url":"https://api.github.com/users/gphat/orgs","repos_url":"https://api.github.com/users/gphat/repos","events_url":"https://api.github.com/users/gphat/events{/privacy}","received_events_url":"https://api.github.com/users/gphat/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T15:51:37Z","updated_at":"2015-11-05T15:51:37Z","body":"Done! Fyi, that change was in existing code, not in something I touched. But a fix nonetheless!"}}