{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/TICK-docker/issues/7","repository_url":"https://api.github.com/repos/influxdata/TICK-docker","labels_url":"https://api.github.com/repos/influxdata/TICK-docker/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/TICK-docker/issues/7/comments","events_url":"https://api.github.com/repos/influxdata/TICK-docker/issues/7/events","html_url":"https://github.com/influxdata/TICK-docker/issues/7","id":165556378,"number":7,"title":"Telegraf, issue with Docker-Plugin","user":{"login":"ArnoBuschmann","id":1889233,"avatar_url":"https://avatars.githubusercontent.com/u/1889233?v=3","gravatar_id":"","url":"https://api.github.com/users/ArnoBuschmann","html_url":"https://github.com/ArnoBuschmann","followers_url":"https://api.github.com/users/ArnoBuschmann/followers","following_url":"https://api.github.com/users/ArnoBuschmann/following{/other_user}","gists_url":"https://api.github.com/users/ArnoBuschmann/gists{/gist_id}","starred_url":"https://api.github.com/users/ArnoBuschmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArnoBuschmann/subscriptions","organizations_url":"https://api.github.com/users/ArnoBuschmann/orgs","repos_url":"https://api.github.com/users/ArnoBuschmann/repos","events_url":"https://api.github.com/users/ArnoBuschmann/events{/privacy}","received_events_url":"https://api.github.com/users/ArnoBuschmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-14T13:00:24Z","updated_at":"2016-07-14T15:41:56Z","closed_at":null,"body":"When adding the Docker plugin to the telegraf.config:\r\n```\r\n[[inputs.docker]]\r\nendpoint = \"unix:///var/run/docker.sock\"\r\n```\r\nI get the error message\r\n```\r\ntelegraf_1       | 2016/07/14 12:31:20 ERROR in input [docker]: Cannot connect to the Docker daemon. Is the docker daemon running on this host?\r\n```\r\nNow for Telegraf itself this has been discussed already here: https://github.com/influxdata/telegraf/issues/1074\r\nBut the solution\r\n```\r\nsudo usermod -aG docker telegraf\r\n```\r\nseems not working when running telegraf itself in this TICK stack as a Docker container.\r\n\r\nAlso it makes no difference if I start TICK-docker with\r\n```\r\ndocker-compose up\r\n```\r\nor\r\n```\r\nsudo docker-compose up\r\n```\r\nAny ideas how I can fix this?"},"comment":{"url":"https://api.github.com/repos/influxdata/TICK-docker/issues/comments/232703785","html_url":"https://github.com/influxdata/TICK-docker/issues/7#issuecomment-232703785","issue_url":"https://api.github.com/repos/influxdata/TICK-docker/issues/7","id":232703785,"user":{"login":"rossmcdonald","id":4060903,"avatar_url":"https://avatars.githubusercontent.com/u/4060903?v=3","gravatar_id":"","url":"https://api.github.com/users/rossmcdonald","html_url":"https://github.com/rossmcdonald","followers_url":"https://api.github.com/users/rossmcdonald/followers","following_url":"https://api.github.com/users/rossmcdonald/following{/other_user}","gists_url":"https://api.github.com/users/rossmcdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/rossmcdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossmcdonald/subscriptions","organizations_url":"https://api.github.com/users/rossmcdonald/orgs","repos_url":"https://api.github.com/users/rossmcdonald/repos","events_url":"https://api.github.com/users/rossmcdonald/events{/privacy}","received_events_url":"https://api.github.com/users/rossmcdonald/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T15:41:56Z","updated_at":"2016-07-14T15:41:56Z","body":"Are you also mounting the unix socket in the Telegraf container? You can add it to the `docker-compose.yml` file like so (under the `telegraf` service):\r\n\r\n```\r\n    volumes:\r\n      - ./etc/telegraf.conf:/etc/telegraf/telegraf.conf:ro\r\n      - /var/run/docker.sock:/var/run/docker.sock\r\n```"}}
{"actor":{"display_login":"rossmcdonald"}}