{"action":"created","issue":{"url":"https://api.github.com/repos/DataDog/dd-agent/issues/2899","repository_url":"https://api.github.com/repos/DataDog/dd-agent","labels_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2899/labels{/name}","comments_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2899/comments","events_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2899/events","html_url":"https://github.com/DataDog/dd-agent/pull/2899","id":181837337,"number":2899,"title":"[agent_metrics] add metrics for num_metrics and num_events","user":{"login":"cberry777","id":13792403,"avatar_url":"https://avatars.githubusercontent.com/u/13792403?v=3","gravatar_id":"","url":"https://api.github.com/users/cberry777","html_url":"https://github.com/cberry777","followers_url":"https://api.github.com/users/cberry777/followers","following_url":"https://api.github.com/users/cberry777/following{/other_user}","gists_url":"https://api.github.com/users/cberry777/gists{/gist_id}","starred_url":"https://api.github.com/users/cberry777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cberry777/subscriptions","organizations_url":"https://api.github.com/users/cberry777/orgs","repos_url":"https://api.github.com/users/cberry777/repos","events_url":"https://api.github.com/users/cberry777/events{/privacy}","received_events_url":"https://api.github.com/users/cberry777/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/DataDog/dd-agent/milestones/76","html_url":"https://github.com/DataDog/dd-agent/milestones/5.11.0","labels_url":"https://api.github.com/repos/DataDog/dd-agent/milestones/76/labels","id":2085757,"number":76,"title":"5.11.0","description":"","creator":{"login":"olivielpeau","id":4912500,"avatar_url":"https://avatars.githubusercontent.com/u/4912500?v=3","gravatar_id":"","url":"https://api.github.com/users/olivielpeau","html_url":"https://github.com/olivielpeau","followers_url":"https://api.github.com/users/olivielpeau/followers","following_url":"https://api.github.com/users/olivielpeau/following{/other_user}","gists_url":"https://api.github.com/users/olivielpeau/gists{/gist_id}","starred_url":"https://api.github.com/users/olivielpeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivielpeau/subscriptions","organizations_url":"https://api.github.com/users/olivielpeau/orgs","repos_url":"https://api.github.com/users/olivielpeau/repos","events_url":"https://api.github.com/users/olivielpeau/events{/privacy}","received_events_url":"https://api.github.com/users/olivielpeau/received_events","type":"User","site_admin":false},"open_issues":28,"closed_issues":19,"state":"open","created_at":"2016-10-21T19:48:58Z","updated_at":"2016-12-02T19:51:43Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-10-08T17:11:23Z","updated_at":"2016-12-02T21:08:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DataDog/dd-agent/pulls/2899","html_url":"https://github.com/DataDog/dd-agent/pull/2899","diff_url":"https://github.com/DataDog/dd-agent/pull/2899.diff","patch_url":"https://github.com/DataDog/dd-agent/pull/2899.patch"},"body":"### What does this PR do?\n\nAdds additional metrics for num_metrics and num_events to agent_metrics\n### Motivation\n\nIt is very important to monitor the number of metrics and events emitted from each agent. It allows us to 1) keep track of the total number of metrics sent to Datadog (to monitor billing), and 2) locate rogue agents emitting above some threshold.\n### Testing Guidelines\n\nA test is provided: /tests/checks/mock/test_agent_metrics.py (# test_num_metrics) \n### Additional Notes\n\nAn optional switch is provided (in the init_config) that allows one to log the  number of metrics and events for each collection run.\n"},"comment":{"url":"https://api.github.com/repos/DataDog/dd-agent/issues/comments/264563155","html_url":"https://github.com/DataDog/dd-agent/pull/2899#issuecomment-264563155","issue_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2899","id":264563155,"user":{"login":"cberry777","id":13792403,"avatar_url":"https://avatars.githubusercontent.com/u/13792403?v=3","gravatar_id":"","url":"https://api.github.com/users/cberry777","html_url":"https://github.com/cberry777","followers_url":"https://api.github.com/users/cberry777/followers","following_url":"https://api.github.com/users/cberry777/following{/other_user}","gists_url":"https://api.github.com/users/cberry777/gists{/gist_id}","starred_url":"https://api.github.com/users/cberry777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cberry777/subscriptions","organizations_url":"https://api.github.com/users/cberry777/orgs","repos_url":"https://api.github.com/users/cberry777/repos","events_url":"https://api.github.com/users/cberry777/events{/privacy}","received_events_url":"https://api.github.com/users/cberry777/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T21:08:58Z","updated_at":"2016-12-02T21:08:58Z","body":"Is there a way to \"re-fire\" the test suite??\r\n(without forcing a bogus commit)"}}
{"actor":{"display_login":"cberry777"}}