{"action":"opened","number":78,"pull_request":{"url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/pulls/78","id":32076692,"html_url":"https://github.com/DataDog/puppet-datadog-agent/pull/78","diff_url":"https://github.com/DataDog/puppet-datadog-agent/pull/78.diff","patch_url":"https://github.com/DataDog/puppet-datadog-agent/pull/78.patch","issue_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/issues/78","number":78,"state":"open","locked":false,"title":"Add postgres custom metrics","user":{"login":"ipolishchuk","id":1055020,"avatar_url":"https://avatars.githubusercontent.com/u/1055020?v=3","gravatar_id":"","url":"https://api.github.com/users/ipolishchuk","html_url":"https://github.com/ipolishchuk","followers_url":"https://api.github.com/users/ipolishchuk/followers","following_url":"https://api.github.com/users/ipolishchuk/following{/other_user}","gists_url":"https://api.github.com/users/ipolishchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ipolishchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipolishchuk/subscriptions","organizations_url":"https://api.github.com/users/ipolishchuk/orgs","repos_url":"https://api.github.com/users/ipolishchuk/repos","events_url":"https://api.github.com/users/ipolishchuk/events{/privacy}","received_events_url":"https://api.github.com/users/ipolishchuk/received_events","type":"User","site_admin":false},"body":"This pull request is a replacement for https://github.com/DataDog/puppet-datadog-agent/pull/69\r\nIt fixes a typo in the londiste3 last_seen metric definition and adds another example of a custom metrics tx_duration_92. There are two metrics here postgresql.max_tx_duration - largest transacrion duration, and postgresql.max_query_duration -- largest query duration for active sessions. The tx_duration_92 metrics are for postgres v9.2+\r\nAn extra value of  tx_duration_92, it provides a working format sample for a metric without descriptor.\r\n\r\n","created_at":"2015-03-27T01:26:37Z","updated_at":"2015-03-27T01:26:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/pulls/78/commits","review_comments_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/pulls/78/comments","review_comment_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/issues/78/comments","statuses_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/statuses/22236ffcbe4bdcd77cf3f5e214ac93f222b011f9","head":{"label":"powerreviews:master","ref":"master","sha":"22236ffcbe4bdcd77cf3f5e214ac93f222b011f9","user":{"login":"powerreviews","id":7257273,"avatar_url":"https://avatars.githubusercontent.com/u/7257273?v=3","gravatar_id":"","url":"https://api.github.com/users/powerreviews","html_url":"https://github.com/powerreviews","followers_url":"https://api.github.com/users/powerreviews/followers","following_url":"https://api.github.com/users/powerreviews/following{/other_user}","gists_url":"https://api.github.com/users/powerreviews/gists{/gist_id}","starred_url":"https://api.github.com/users/powerreviews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/powerreviews/subscriptions","organizations_url":"https://api.github.com/users/powerreviews/orgs","repos_url":"https://api.github.com/users/powerreviews/repos","events_url":"https://api.github.com/users/powerreviews/events{/privacy}","received_events_url":"https://api.github.com/users/powerreviews/received_events","type":"Organization","site_admin":false},"repo":{"id":28101488,"name":"puppet-datadog-agent","full_name":"powerreviews/puppet-datadog-agent","owner":{"login":"powerreviews","id":7257273,"avatar_url":"https://avatars.githubusercontent.com/u/7257273?v=3","gravatar_id":"","url":"https://api.github.com/users/powerreviews","html_url":"https://github.com/powerreviews","followers_url":"https://api.github.com/users/powerreviews/followers","following_url":"https://api.github.com/users/powerreviews/following{/other_user}","gists_url":"https://api.github.com/users/powerreviews/gists{/gist_id}","starred_url":"https://api.github.com/users/powerreviews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/powerreviews/subscriptions","organizations_url":"https://api.github.com/users/powerreviews/orgs","repos_url":"https://api.github.com/users/powerreviews/repos","events_url":"https://api.github.com/users/powerreviews/events{/privacy}","received_events_url":"https://api.github.com/users/powerreviews/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/powerreviews/puppet-datadog-agent","description":"Puppet module to install the DataDog agent","fork":true,"url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent","forks_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/forks","keys_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/teams","hooks_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/hooks","issue_events_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/issues/events{/number}","events_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/events","assignees_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/assignees{/user}","branches_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/branches{/branch}","tags_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/tags","blobs_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/statuses/{sha}","languages_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/languages","stargazers_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/stargazers","contributors_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/contributors","subscribers_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/subscribers","subscription_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/subscription","commits_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/contents/{+path}","compare_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/merges","archive_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/downloads","issues_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/issues{/number}","pulls_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/pulls{/number}","milestones_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/milestones{/number}","notifications_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/labels{/name}","releases_url":"https://api.github.com/repos/powerreviews/puppet-datadog-agent/releases{/id}","created_at":"2014-12-16T18:57:23Z","updated_at":"2015-03-26T22:50:40Z","pushed_at":"2015-03-26T22:50:40Z","git_url":"git://github.com/powerreviews/puppet-datadog-agent.git","ssh_url":"git@github.com:powerreviews/puppet-datadog-agent.git","clone_url":"https://github.com/powerreviews/puppet-datadog-agent.git","svn_url":"https://github.com/powerreviews/puppet-datadog-agent","homepage":"","size":341,"stargazers_count":0,"watchers_count":0,"language":"Puppet","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DataDog:master","ref":"master","sha":"3cffbcfc6102c8cd982b9004e46fda57c19f4cf4","user":{"login":"DataDog","id":365230,"avatar_url":"https://avatars.githubusercontent.com/u/365230?v=3","gravatar_id":"","url":"https://api.github.com/users/DataDog","html_url":"https://github.com/DataDog","followers_url":"https://api.github.com/users/DataDog/followers","following_url":"https://api.github.com/users/DataDog/following{/other_user}","gists_url":"https://api.github.com/users/DataDog/gists{/gist_id}","starred_url":"https://api.github.com/users/DataDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataDog/subscriptions","organizations_url":"https://api.github.com/users/DataDog/orgs","repos_url":"https://api.github.com/users/DataDog/repos","events_url":"https://api.github.com/users/DataDog/events{/privacy}","received_events_url":"https://api.github.com/users/DataDog/received_events","type":"Organization","site_admin":false},"repo":{"id":2036710,"name":"puppet-datadog-agent","full_name":"DataDog/puppet-datadog-agent","owner":{"login":"DataDog","id":365230,"avatar_url":"https://avatars.githubusercontent.com/u/365230?v=3","gravatar_id":"","url":"https://api.github.com/users/DataDog","html_url":"https://github.com/DataDog","followers_url":"https://api.github.com/users/DataDog/followers","following_url":"https://api.github.com/users/DataDog/following{/other_user}","gists_url":"https://api.github.com/users/DataDog/gists{/gist_id}","starred_url":"https://api.github.com/users/DataDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataDog/subscriptions","organizations_url":"https://api.github.com/users/DataDog/orgs","repos_url":"https://api.github.com/users/DataDog/repos","events_url":"https://api.github.com/users/DataDog/events{/privacy}","received_events_url":"https://api.github.com/users/DataDog/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DataDog/puppet-datadog-agent","description":"Puppet module to install the DataDog agent","fork":true,"url":"https://api.github.com/repos/DataDog/puppet-datadog-agent","forks_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/forks","keys_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/teams","hooks_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/hooks","issue_events_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/issues/events{/number}","events_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/events","assignees_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/assignees{/user}","branches_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/branches{/branch}","tags_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/tags","blobs_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/statuses/{sha}","languages_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/languages","stargazers_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/stargazers","contributors_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/contributors","subscribers_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/subscribers","subscription_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/subscription","commits_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/contents/{+path}","compare_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/merges","archive_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/downloads","issues_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/issues{/number}","pulls_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/pulls{/number}","milestones_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/milestones{/number}","notifications_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/labels{/name}","releases_url":"https://api.github.com/repos/DataDog/puppet-datadog-agent/releases{/id}","created_at":"2011-07-12T15:16:26Z","updated_at":"2015-02-24T19:12:37Z","pushed_at":"2015-03-26T16:52:25Z","git_url":"git://github.com/DataDog/puppet-datadog-agent.git","ssh_url":"git@github.com:DataDog/puppet-datadog-agent.git","clone_url":"https://github.com/DataDog/puppet-datadog-agent.git","svn_url":"https://github.com/DataDog/puppet-datadog-agent","homepage":"","size":1058,"stargazers_count":11,"watchers_count":11,"language":"Puppet","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":16,"forks":41,"open_issues":16,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DataDog/puppet-datadog-agent/pulls/78"},"html":{"href":"https://github.com/DataDog/puppet-datadog-agent/pull/78"},"issue":{"href":"https://api.github.com/repos/DataDog/puppet-datadog-agent/issues/78"},"comments":{"href":"https://api.github.com/repos/DataDog/puppet-datadog-agent/issues/78/comments"},"review_comments":{"href":"https://api.github.com/repos/DataDog/puppet-datadog-agent/pulls/78/comments"},"review_comment":{"href":"https://api.github.com/repos/DataDog/puppet-datadog-agent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DataDog/puppet-datadog-agent/pulls/78/commits"},"statuses":{"href":"https://api.github.com/repos/DataDog/puppet-datadog-agent/statuses/22236ffcbe4bdcd77cf3f5e214ac93f222b011f9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":50,"deletions":1,"changed_files":2}}