{"action":"created","comment":{"url":"https://api.github.com/repos/influxdata/telegraf/pulls/comments/194963858","pull_request_review_id":128235641,"id":194963858,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDk2Mzg1OA==","diff_hunk":"@@ -435,6 +435,22 @@ func (d *Docker) gatherContainer(\n \t\t\t}\n \t\t}\n \t}\n+\tif info.State != nil {\n+\t\tstatefields := map[string]interface{}{\n+\t\t\t\"status\":     info.State.Status,","path":"plugins/inputs/docker/docker.go","position":6,"original_position":6,"commit_id":"58c16a125449cfd7b0608d89b9471a902c7e4380","original_commit_id":"e532e4a5924335a336150a082824b6d0e3ff7189","user":{"login":"danielnelson","id":1048079,"node_id":"MDQ6VXNlcjEwNDgwNzk=","avatar_url":"https://avatars3.githubusercontent.com/u/1048079?v=4","gravatar_id":"","url":"https://api.github.com/users/danielnelson","html_url":"https://github.com/danielnelson","followers_url":"https://api.github.com/users/danielnelson/followers","following_url":"https://api.github.com/users/danielnelson/following{/other_user}","gists_url":"https://api.github.com/users/danielnelson/gists{/gist_id}","starred_url":"https://api.github.com/users/danielnelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielnelson/subscriptions","organizations_url":"https://api.github.com/users/danielnelson/orgs","repos_url":"https://api.github.com/users/danielnelson/repos","events_url":"https://api.github.com/users/danielnelson/events{/privacy}","received_events_url":"https://api.github.com/users/danielnelson/received_events","type":"User","site_admin":false},"body":"It is a little bit of duplication, but it seems useful to be able to \"group by\" status on any of the container measurements.","created_at":"2018-06-13T06:01:18Z","updated_at":"2018-06-13T06:01:18Z","html_url":"https://github.com/influxdata/telegraf/pull/4259#discussion_r194963858","pull_request_url":"https://api.github.com/repos/influxdata/telegraf/pulls/4259","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/influxdata/telegraf/pulls/comments/194963858"},"html":{"href":"https://github.com/influxdata/telegraf/pull/4259#discussion_r194963858"},"pull_request":{"href":"https://api.github.com/repos/influxdata/telegraf/pulls/4259"}},"in_reply_to_id":194924110},"pull_request":{"url":"https://api.github.com/repos/influxdata/telegraf/pulls/4259","id":193777014,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzNzc3MDE0","html_url":"https://github.com/influxdata/telegraf/pull/4259","diff_url":"https://github.com/influxdata/telegraf/pull/4259.diff","patch_url":"https://github.com/influxdata/telegraf/pull/4259.patch","issue_url":"https://api.github.com/repos/influxdata/telegraf/issues/4259","number":4259,"state":"open","locked":false,"title":"Telegraph Docker Input Plugin : per docker running status support","user":{"login":"prashanthjbabu","id":1934787,"node_id":"MDQ6VXNlcjE5MzQ3ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1934787?v=4","gravatar_id":"","url":"https://api.github.com/users/prashanthjbabu","html_url":"https://github.com/prashanthjbabu","followers_url":"https://api.github.com/users/prashanthjbabu/followers","following_url":"https://api.github.com/users/prashanthjbabu/following{/other_user}","gists_url":"https://api.github.com/users/prashanthjbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/prashanthjbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prashanthjbabu/subscriptions","organizations_url":"https://api.github.com/users/prashanthjbabu/orgs","repos_url":"https://api.github.com/users/prashanthjbabu/repos","events_url":"https://api.github.com/users/prashanthjbabu/events{/privacy}","received_events_url":"https://api.github.com/users/prashanthjbabu/received_events","type":"User","site_admin":false},"body":"Currently the docker input plugin does not provide the running status of the docker . It does provide health status of the docker but that is only retrieved if the docker application supports it . This enhancement extends the plugin to give out the running status of the docker which is taken from the Docker Container Inspect API.\r\n### Required for all PRs:\r\n\r\n- [x] Signed [CLA](https://influxdata.com/community/cla/).\r\n- [ ] Associated README.md updated.\r\n- [ ] Has appropriate unit tests.\r\n","created_at":"2018-06-09T13:11:01Z","updated_at":"2018-06-13T06:01:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c542e3f3672a7ee460f5d9b43ff145451e44f863","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":598155026,"node_id":"MDU6TGFiZWw1OTgxNTUwMjY=","url":"https://api.github.com/repos/influxdata/telegraf/labels/area/docker","name":"area/docker","color":"f48d38","default":false},{"id":435014442,"node_id":"MDU6TGFiZWw0MzUwMTQ0NDI=","url":"https://api.github.com/repos/influxdata/telegraf/labels/enhancement","name":"enhancement","color":"513cc6","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/influxdata/telegraf/pulls/4259/commits","review_comments_url":"https://api.github.com/repos/influxdata/telegraf/pulls/4259/comments","review_comment_url":"https://api.github.com/repos/influxdata/telegraf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/influxdata/telegraf/issues/4259/comments","statuses_url":"https://api.github.com/repos/influxdata/telegraf/statuses/58c16a125449cfd7b0608d89b9471a902c7e4380","head":{"label":"prashanthjbabu:per-docker-running-status","ref":"per-docker-running-status","sha":"58c16a125449cfd7b0608d89b9471a902c7e4380","user":{"login":"prashanthjbabu","id":1934787,"node_id":"MDQ6VXNlcjE5MzQ3ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1934787?v=4","gravatar_id":"","url":"https://api.github.com/users/prashanthjbabu","html_url":"https://github.com/prashanthjbabu","followers_url":"https://api.github.com/users/prashanthjbabu/followers","following_url":"https://api.github.com/users/prashanthjbabu/following{/other_user}","gists_url":"https://api.github.com/users/prashanthjbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/prashanthjbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prashanthjbabu/subscriptions","organizations_url":"https://api.github.com/users/prashanthjbabu/orgs","repos_url":"https://api.github.com/users/prashanthjbabu/repos","events_url":"https://api.github.com/users/prashanthjbabu/events{/privacy}","received_events_url":"https://api.github.com/users/prashanthjbabu/received_events","type":"User","site_admin":false},"repo":{"id":136722833,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY3MjI4MzM=","name":"telegraf","full_name":"prashanthjbabu/telegraf","owner":{"login":"prashanthjbabu","id":1934787,"node_id":"MDQ6VXNlcjE5MzQ3ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1934787?v=4","gravatar_id":"","url":"https://api.github.com/users/prashanthjbabu","html_url":"https://github.com/prashanthjbabu","followers_url":"https://api.github.com/users/prashanthjbabu/followers","following_url":"https://api.github.com/users/prashanthjbabu/following{/other_user}","gists_url":"https://api.github.com/users/prashanthjbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/prashanthjbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prashanthjbabu/subscriptions","organizations_url":"https://api.github.com/users/prashanthjbabu/orgs","repos_url":"https://api.github.com/users/prashanthjbabu/repos","events_url":"https://api.github.com/users/prashanthjbabu/events{/privacy}","received_events_url":"https://api.github.com/users/prashanthjbabu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prashanthjbabu/telegraf","description":"The plugin-driven server agent for collecting & reporting metrics.","fork":true,"url":"https://api.github.com/repos/prashanthjbabu/telegraf","forks_url":"https://api.github.com/repos/prashanthjbabu/telegraf/forks","keys_url":"https://api.github.com/repos/prashanthjbabu/telegraf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prashanthjbabu/telegraf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prashanthjbabu/telegraf/teams","hooks_url":"https://api.github.com/repos/prashanthjbabu/telegraf/hooks","issue_events_url":"https://api.github.com/repos/prashanthjbabu/telegraf/issues/events{/number}","events_url":"https://api.github.com/repos/prashanthjbabu/telegraf/events","assignees_url":"https://api.github.com/repos/prashanthjbabu/telegraf/assignees{/user}","branches_url":"https://api.github.com/repos/prashanthjbabu/telegraf/branches{/branch}","tags_url":"https://api.github.com/repos/prashanthjbabu/telegraf/tags","blobs_url":"https://api.github.com/repos/prashanthjbabu/telegraf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prashanthjbabu/telegraf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prashanthjbabu/telegraf/git/refs{/sha}","trees_url":"https://api.github.com/repos/prashanthjbabu/telegraf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prashanthjbabu/telegraf/statuses/{sha}","languages_url":"https://api.github.com/repos/prashanthjbabu/telegraf/languages","stargazers_url":"https://api.github.com/repos/prashanthjbabu/telegraf/stargazers","contributors_url":"https://api.github.com/repos/prashanthjbabu/telegraf/contributors","subscribers_url":"https://api.github.com/repos/prashanthjbabu/telegraf/subscribers","subscription_url":"https://api.github.com/repos/prashanthjbabu/telegraf/subscription","commits_url":"https://api.github.com/repos/prashanthjbabu/telegraf/commits{/sha}","git_commits_url":"https://api.github.com/repos/prashanthjbabu/telegraf/git/commits{/sha}","comments_url":"https://api.github.com/repos/prashanthjbabu/telegraf/comments{/number}","issue_comment_url":"https://api.github.com/repos/prashanthjbabu/telegraf/issues/comments{/number}","contents_url":"https://api.github.com/repos/prashanthjbabu/telegraf/contents/{+path}","compare_url":"https://api.github.com/repos/prashanthjbabu/telegraf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prashanthjbabu/telegraf/merges","archive_url":"https://api.github.com/repos/prashanthjbabu/telegraf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prashanthjbabu/telegraf/downloads","issues_url":"https://api.github.com/repos/prashanthjbabu/telegraf/issues{/number}","pulls_url":"https://api.github.com/repos/prashanthjbabu/telegraf/pulls{/number}","milestones_url":"https://api.github.com/repos/prashanthjbabu/telegraf/milestones{/number}","notifications_url":"https://api.github.com/repos/prashanthjbabu/telegraf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prashanthjbabu/telegraf/labels{/name}","releases_url":"https://api.github.com/repos/prashanthjbabu/telegraf/releases{/id}","deployments_url":"https://api.github.com/repos/prashanthjbabu/telegraf/deployments","created_at":"2018-06-09T12:49:58Z","updated_at":"2018-06-09T12:50:02Z","pushed_at":"2018-06-13T05:33:24Z","git_url":"git://github.com/prashanthjbabu/telegraf.git","ssh_url":"git@github.com:prashanthjbabu/telegraf.git","clone_url":"https://github.com/prashanthjbabu/telegraf.git","svn_url":"https://github.com/prashanthjbabu/telegraf","homepage":"","size":21602,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"influxdata:master","ref":"master","sha":"87f711a19a5e25f7f598ea24662c77098f57fdab","user":{"login":"influxdata","id":5713248,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MTMyNDg=","avatar_url":"https://avatars2.githubusercontent.com/u/5713248?v=4","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"repo":{"id":33258973,"node_id":"MDEwOlJlcG9zaXRvcnkzMzI1ODk3Mw==","name":"telegraf","full_name":"influxdata/telegraf","owner":{"login":"influxdata","id":5713248,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MTMyNDg=","avatar_url":"https://avatars2.githubusercontent.com/u/5713248?v=4","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/influxdata/telegraf","description":"The plugin-driven server agent for collecting & reporting metrics.","fork":false,"url":"https://api.github.com/repos/influxdata/telegraf","forks_url":"https://api.github.com/repos/influxdata/telegraf/forks","keys_url":"https://api.github.com/repos/influxdata/telegraf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influxdata/telegraf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influxdata/telegraf/teams","hooks_url":"https://api.github.com/repos/influxdata/telegraf/hooks","issue_events_url":"https://api.github.com/repos/influxdata/telegraf/issues/events{/number}","events_url":"https://api.github.com/repos/influxdata/telegraf/events","assignees_url":"https://api.github.com/repos/influxdata/telegraf/assignees{/user}","branches_url":"https://api.github.com/repos/influxdata/telegraf/branches{/branch}","tags_url":"https://api.github.com/repos/influxdata/telegraf/tags","blobs_url":"https://api.github.com/repos/influxdata/telegraf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influxdata/telegraf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influxdata/telegraf/git/refs{/sha}","trees_url":"https://api.github.com/repos/influxdata/telegraf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influxdata/telegraf/statuses/{sha}","languages_url":"https://api.github.com/repos/influxdata/telegraf/languages","stargazers_url":"https://api.github.com/repos/influxdata/telegraf/stargazers","contributors_url":"https://api.github.com/repos/influxdata/telegraf/contributors","subscribers_url":"https://api.github.com/repos/influxdata/telegraf/subscribers","subscription_url":"https://api.github.com/repos/influxdata/telegraf/subscription","commits_url":"https://api.github.com/repos/influxdata/telegraf/commits{/sha}","git_commits_url":"https://api.github.com/repos/influxdata/telegraf/git/commits{/sha}","comments_url":"https://api.github.com/repos/influxdata/telegraf/comments{/number}","issue_comment_url":"https://api.github.com/repos/influxdata/telegraf/issues/comments{/number}","contents_url":"https://api.github.com/repos/influxdata/telegraf/contents/{+path}","compare_url":"https://api.github.com/repos/influxdata/telegraf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influxdata/telegraf/merges","archive_url":"https://api.github.com/repos/influxdata/telegraf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influxdata/telegraf/downloads","issues_url":"https://api.github.com/repos/influxdata/telegraf/issues{/number}","pulls_url":"https://api.github.com/repos/influxdata/telegraf/pulls{/number}","milestones_url":"https://api.github.com/repos/influxdata/telegraf/milestones{/number}","notifications_url":"https://api.github.com/repos/influxdata/telegraf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influxdata/telegraf/labels{/name}","releases_url":"https://api.github.com/repos/influxdata/telegraf/releases{/id}","deployments_url":"https://api.github.com/repos/influxdata/telegraf/deployments","created_at":"2015-04-01T16:28:44Z","updated_at":"2018-06-13T04:55:12Z","pushed_at":"2018-06-13T05:33:30Z","git_url":"git://github.com/influxdata/telegraf.git","ssh_url":"git@github.com:influxdata/telegraf.git","clone_url":"https://github.com/influxdata/telegraf.git","svn_url":"https://github.com/influxdata/telegraf","homepage":"","size":21694,"stargazers_count":5032,"watchers_count":5032,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1870,"mirror_url":null,"archived":false,"open_issues_count":582,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1870,"open_issues":582,"watchers":5032,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/influxdata/telegraf/pulls/4259"},"html":{"href":"https://github.com/influxdata/telegraf/pull/4259"},"issue":{"href":"https://api.github.com/repos/influxdata/telegraf/issues/4259"},"comments":{"href":"https://api.github.com/repos/influxdata/telegraf/issues/4259/comments"},"review_comments":{"href":"https://api.github.com/repos/influxdata/telegraf/pulls/4259/comments"},"review_comment":{"href":"https://api.github.com/repos/influxdata/telegraf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/influxdata/telegraf/pulls/4259/commits"},"statuses":{"href":"https://api.github.com/repos/influxdata/telegraf/statuses/58c16a125449cfd7b0608d89b9471a902c7e4380"}},"author_association":"NONE"}}
{"actor":{"display_login":"danielnelson"}}