{"action":"opened","number":416,"pull_request":{"url":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls/416","id":143684871,"html_url":"https://github.com/mackerelio/mackerel-agent/pull/416","diff_url":"https://github.com/mackerelio/mackerel-agent/pull/416.diff","patch_url":"https://github.com/mackerelio/mackerel-agent/pull/416.patch","issue_url":"https://api.github.com/repos/mackerelio/mackerel-agent/issues/416","number":416,"state":"open","locked":false,"title":"Filter plugin metrics value by metric_name_pattern option","user":{"login":"astj","id":5095045,"avatar_url":"https://avatars0.githubusercontent.com/u/5095045?v=4","gravatar_id":"","url":"https://api.github.com/users/astj","html_url":"https://github.com/astj","followers_url":"https://api.github.com/users/astj/followers","following_url":"https://api.github.com/users/astj/following{/other_user}","gists_url":"https://api.github.com/users/astj/gists{/gist_id}","starred_url":"https://api.github.com/users/astj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astj/subscriptions","organizations_url":"https://api.github.com/users/astj/orgs","repos_url":"https://api.github.com/users/astj/repos","events_url":"https://api.github.com/users/astj/events{/privacy}","received_events_url":"https://api.github.com/users/astj/received_events","type":"User","site_admin":false},"body":"When `ruby ./dice.rb` generates two metrics `dice6` and `dice20`, following plugin config now only sends `dice6` metrics to Mackerel.\r\n\r\n```toml\r\n[plugin.metrics.dice]\r\ncommand = \"ruby ./dice.rb\"\r\nmetric_name_pattern = '^dice6'\r\n```\r\n","created_at":"2017-09-28T15:41:05Z","updated_at":"2017-09-28T15:41:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls/416/commits","review_comments_url":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls/416/comments","review_comment_url":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mackerelio/mackerel-agent/issues/416/comments","statuses_url":"https://api.github.com/repos/mackerelio/mackerel-agent/statuses/ac29398f8ee2d3ac2ff7394ca4cc8829c6bad06d","head":{"label":"mackerelio:filter-metrics","ref":"filter-metrics","sha":"ac29398f8ee2d3ac2ff7394ca4cc8829c6bad06d","user":{"login":"mackerelio","id":6637336,"avatar_url":"https://avatars0.githubusercontent.com/u/6637336?v=4","gravatar_id":"","url":"https://api.github.com/users/mackerelio","html_url":"https://github.com/mackerelio","followers_url":"https://api.github.com/users/mackerelio/followers","following_url":"https://api.github.com/users/mackerelio/following{/other_user}","gists_url":"https://api.github.com/users/mackerelio/gists{/gist_id}","starred_url":"https://api.github.com/users/mackerelio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackerelio/subscriptions","organizations_url":"https://api.github.com/users/mackerelio/orgs","repos_url":"https://api.github.com/users/mackerelio/repos","events_url":"https://api.github.com/users/mackerelio/events{/privacy}","received_events_url":"https://api.github.com/users/mackerelio/received_events","type":"Organization","site_admin":false},"repo":{"id":19845168,"name":"mackerel-agent","full_name":"mackerelio/mackerel-agent","owner":{"login":"mackerelio","id":6637336,"avatar_url":"https://avatars0.githubusercontent.com/u/6637336?v=4","gravatar_id":"","url":"https://api.github.com/users/mackerelio","html_url":"https://github.com/mackerelio","followers_url":"https://api.github.com/users/mackerelio/followers","following_url":"https://api.github.com/users/mackerelio/following{/other_user}","gists_url":"https://api.github.com/users/mackerelio/gists{/gist_id}","starred_url":"https://api.github.com/users/mackerelio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackerelio/subscriptions","organizations_url":"https://api.github.com/users/mackerelio/orgs","repos_url":"https://api.github.com/users/mackerelio/repos","events_url":"https://api.github.com/users/mackerelio/events{/privacy}","received_events_url":"https://api.github.com/users/mackerelio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mackerelio/mackerel-agent","description":"mackerel-agent is an agent program to post your hosts' metrics to mackerel.io.","fork":false,"url":"https://api.github.com/repos/mackerelio/mackerel-agent","forks_url":"https://api.github.com/repos/mackerelio/mackerel-agent/forks","keys_url":"https://api.github.com/repos/mackerelio/mackerel-agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mackerelio/mackerel-agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mackerelio/mackerel-agent/teams","hooks_url":"https://api.github.com/repos/mackerelio/mackerel-agent/hooks","issue_events_url":"https://api.github.com/repos/mackerelio/mackerel-agent/issues/events{/number}","events_url":"https://api.github.com/repos/mackerelio/mackerel-agent/events","assignees_url":"https://api.github.com/repos/mackerelio/mackerel-agent/assignees{/user}","branches_url":"https://api.github.com/repos/mackerelio/mackerel-agent/branches{/branch}","tags_url":"https://api.github.com/repos/mackerelio/mackerel-agent/tags","blobs_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mackerelio/mackerel-agent/statuses/{sha}","languages_url":"https://api.github.com/repos/mackerelio/mackerel-agent/languages","stargazers_url":"https://api.github.com/repos/mackerelio/mackerel-agent/stargazers","contributors_url":"https://api.github.com/repos/mackerelio/mackerel-agent/contributors","subscribers_url":"https://api.github.com/repos/mackerelio/mackerel-agent/subscribers","subscription_url":"https://api.github.com/repos/mackerelio/mackerel-agent/subscription","commits_url":"https://api.github.com/repos/mackerelio/mackerel-agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/mackerelio/mackerel-agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/mackerelio/mackerel-agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/mackerelio/mackerel-agent/contents/{+path}","compare_url":"https://api.github.com/repos/mackerelio/mackerel-agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mackerelio/mackerel-agent/merges","archive_url":"https://api.github.com/repos/mackerelio/mackerel-agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mackerelio/mackerel-agent/downloads","issues_url":"https://api.github.com/repos/mackerelio/mackerel-agent/issues{/number}","pulls_url":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls{/number}","milestones_url":"https://api.github.com/repos/mackerelio/mackerel-agent/milestones{/number}","notifications_url":"https://api.github.com/repos/mackerelio/mackerel-agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mackerelio/mackerel-agent/labels{/name}","releases_url":"https://api.github.com/repos/mackerelio/mackerel-agent/releases{/id}","deployments_url":"https://api.github.com/repos/mackerelio/mackerel-agent/deployments","created_at":"2014-05-16T05:01:38Z","updated_at":"2017-08-29T03:40:11Z","pushed_at":"2017-09-28T15:37:59Z","git_url":"git://github.com/mackerelio/mackerel-agent.git","ssh_url":"git@github.com:mackerelio/mackerel-agent.git","clone_url":"https://github.com/mackerelio/mackerel-agent.git","svn_url":"https://github.com/mackerelio/mackerel-agent","homepage":"https://mackerel.io","size":1658,"stargazers_count":286,"watchers_count":286,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":60,"mirror_url":null,"open_issues_count":6,"forks":60,"open_issues":6,"watchers":286,"default_branch":"master"}},"base":{"label":"mackerelio:master","ref":"master","sha":"a41e054589b2962ad5718b2c61913b8d24b16633","user":{"login":"mackerelio","id":6637336,"avatar_url":"https://avatars0.githubusercontent.com/u/6637336?v=4","gravatar_id":"","url":"https://api.github.com/users/mackerelio","html_url":"https://github.com/mackerelio","followers_url":"https://api.github.com/users/mackerelio/followers","following_url":"https://api.github.com/users/mackerelio/following{/other_user}","gists_url":"https://api.github.com/users/mackerelio/gists{/gist_id}","starred_url":"https://api.github.com/users/mackerelio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackerelio/subscriptions","organizations_url":"https://api.github.com/users/mackerelio/orgs","repos_url":"https://api.github.com/users/mackerelio/repos","events_url":"https://api.github.com/users/mackerelio/events{/privacy}","received_events_url":"https://api.github.com/users/mackerelio/received_events","type":"Organization","site_admin":false},"repo":{"id":19845168,"name":"mackerel-agent","full_name":"mackerelio/mackerel-agent","owner":{"login":"mackerelio","id":6637336,"avatar_url":"https://avatars0.githubusercontent.com/u/6637336?v=4","gravatar_id":"","url":"https://api.github.com/users/mackerelio","html_url":"https://github.com/mackerelio","followers_url":"https://api.github.com/users/mackerelio/followers","following_url":"https://api.github.com/users/mackerelio/following{/other_user}","gists_url":"https://api.github.com/users/mackerelio/gists{/gist_id}","starred_url":"https://api.github.com/users/mackerelio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackerelio/subscriptions","organizations_url":"https://api.github.com/users/mackerelio/orgs","repos_url":"https://api.github.com/users/mackerelio/repos","events_url":"https://api.github.com/users/mackerelio/events{/privacy}","received_events_url":"https://api.github.com/users/mackerelio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mackerelio/mackerel-agent","description":"mackerel-agent is an agent program to post your hosts' metrics to mackerel.io.","fork":false,"url":"https://api.github.com/repos/mackerelio/mackerel-agent","forks_url":"https://api.github.com/repos/mackerelio/mackerel-agent/forks","keys_url":"https://api.github.com/repos/mackerelio/mackerel-agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mackerelio/mackerel-agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mackerelio/mackerel-agent/teams","hooks_url":"https://api.github.com/repos/mackerelio/mackerel-agent/hooks","issue_events_url":"https://api.github.com/repos/mackerelio/mackerel-agent/issues/events{/number}","events_url":"https://api.github.com/repos/mackerelio/mackerel-agent/events","assignees_url":"https://api.github.com/repos/mackerelio/mackerel-agent/assignees{/user}","branches_url":"https://api.github.com/repos/mackerelio/mackerel-agent/branches{/branch}","tags_url":"https://api.github.com/repos/mackerelio/mackerel-agent/tags","blobs_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mackerelio/mackerel-agent/statuses/{sha}","languages_url":"https://api.github.com/repos/mackerelio/mackerel-agent/languages","stargazers_url":"https://api.github.com/repos/mackerelio/mackerel-agent/stargazers","contributors_url":"https://api.github.com/repos/mackerelio/mackerel-agent/contributors","subscribers_url":"https://api.github.com/repos/mackerelio/mackerel-agent/subscribers","subscription_url":"https://api.github.com/repos/mackerelio/mackerel-agent/subscription","commits_url":"https://api.github.com/repos/mackerelio/mackerel-agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/mackerelio/mackerel-agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/mackerelio/mackerel-agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/mackerelio/mackerel-agent/contents/{+path}","compare_url":"https://api.github.com/repos/mackerelio/mackerel-agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mackerelio/mackerel-agent/merges","archive_url":"https://api.github.com/repos/mackerelio/mackerel-agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mackerelio/mackerel-agent/downloads","issues_url":"https://api.github.com/repos/mackerelio/mackerel-agent/issues{/number}","pulls_url":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls{/number}","milestones_url":"https://api.github.com/repos/mackerelio/mackerel-agent/milestones{/number}","notifications_url":"https://api.github.com/repos/mackerelio/mackerel-agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mackerelio/mackerel-agent/labels{/name}","releases_url":"https://api.github.com/repos/mackerelio/mackerel-agent/releases{/id}","deployments_url":"https://api.github.com/repos/mackerelio/mackerel-agent/deployments","created_at":"2014-05-16T05:01:38Z","updated_at":"2017-08-29T03:40:11Z","pushed_at":"2017-09-28T15:37:59Z","git_url":"git://github.com/mackerelio/mackerel-agent.git","ssh_url":"git@github.com:mackerelio/mackerel-agent.git","clone_url":"https://github.com/mackerelio/mackerel-agent.git","svn_url":"https://github.com/mackerelio/mackerel-agent","homepage":"https://mackerel.io","size":1658,"stargazers_count":286,"watchers_count":286,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":60,"mirror_url":null,"open_issues_count":6,"forks":60,"open_issues":6,"watchers":286,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls/416"},"html":{"href":"https://github.com/mackerelio/mackerel-agent/pull/416"},"issue":{"href":"https://api.github.com/repos/mackerelio/mackerel-agent/issues/416"},"comments":{"href":"https://api.github.com/repos/mackerelio/mackerel-agent/issues/416/comments"},"review_comments":{"href":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls/416/comments"},"review_comment":{"href":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls/416/commits"},"statuses":{"href":"https://api.github.com/repos/mackerelio/mackerel-agent/statuses/ac29398f8ee2d3ac2ff7394ca4cc8829c6bad06d"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":4,"additions":58,"deletions":10,"changed_files":4}}
{"actor":{"display_login":"astj"}}