{"action":"created","issue":{"url":"https://api.github.com/repos/DataDog/dd-agent/issues/2680","repository_url":"https://api.github.com/repos/DataDog/dd-agent","labels_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2680/labels{/name}","comments_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2680/comments","events_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2680/events","html_url":"https://github.com/DataDog/dd-agent/issues/2680","id":165277921,"number":2680,"title":"DataDog Docker integration issue on Debian Jessie","user":{"login":"czerasz","id":384489,"avatar_url":"https://avatars.githubusercontent.com/u/384489?v=3","gravatar_id":"","url":"https://api.github.com/users/czerasz","html_url":"https://github.com/czerasz","followers_url":"https://api.github.com/users/czerasz/followers","following_url":"https://api.github.com/users/czerasz/following{/other_user}","gists_url":"https://api.github.com/users/czerasz/gists{/gist_id}","starred_url":"https://api.github.com/users/czerasz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czerasz/subscriptions","organizations_url":"https://api.github.com/users/czerasz/orgs","repos_url":"https://api.github.com/users/czerasz/repos","events_url":"https://api.github.com/users/czerasz/events{/privacy}","received_events_url":"https://api.github.com/users/czerasz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-07-13T09:34:50Z","updated_at":"2016-09-14T19:18:08Z","closed_at":"2016-08-24T08:59:40Z","body":"I'm getting the following on my Debian DigitalOcean dropplet:\r\n\r\n```\r\ndocker_daemon\r\n-------------\r\n  - instance #0 [WARNING]\r\n      Warning: Initialization failed. Will retry at next iteration\r\n  - Collected 0 metrics, 0 events & 1 service check\r\n```\r\n\r\nBelow the configuration file (recommended on the integration page):\r\n\r\n```\r\n$ cat /etc/dd-agent/conf.d/docker_daemon.yaml\r\ninit_config:\r\n\r\ninstances:\r\n    - url: \"unix://var/run/docker.sock\"\r\n      new_tag_names: true\r\n```\r\n\r\nHere the full info output:\r\n\r\n```\r\n$ /etc/init.d/datadog-agent info\r\n===================\r\nCollector (v 5.8.4)\r\n===================\r\n\r\n  Status date: 2016-07-12 12:49:32 (3s ago)\r\n  Pid: 1021\r\n  Platform: Linux-3.16.0-4-amd64-x86_64-with-debian-8.5\r\n  Python Version: 2.7.11, 64bit\r\n  Logs: <stderr>, /var/log/datadog/collector.log, syslog:/dev/log\r\n\r\n  Clocks\r\n  ======\r\n  \r\n    NTP offset: 0.46 s\r\n    System UTC time: 2016-07-12 16:49:35.680506\r\n  \r\n  Paths\r\n  =====\r\n  \r\n    conf.d: /etc/dd-agent/conf.d\r\n    checks.d: /opt/datadog-agent/agent/checks.d\r\n  \r\n  Hostnames\r\n  =========\r\n  \r\n    socket-hostname: debian-1gb-fra1-xx-01\r\n    hostname: debian-1gb-fra1-xx-01\r\n    socket-fqdn: debian-1gb-fra1-xx-01\r\n  \r\n  Checks\r\n  ======\r\n  \r\n    nginx\r\n    -----\r\n      - instance #0 [OK]\r\n      - Collected 7 metrics, 0 events & 2 service checks\r\n  \r\n    network\r\n    -------\r\n      - instance #0 [OK]\r\n      - Collected 27 metrics, 0 events & 1 service check\r\n  \r\n    ntp\r\n    ---\r\n      - Collected 0 metrics, 0 events & 1 service check\r\n  \r\n    disk\r\n    ----\r\n      - instance #0 [OK]\r\n      - Collected 32 metrics, 0 events & 1 service check\r\n  \r\n    docker_daemon\r\n    -------------\r\n      - instance #0 [WARNING]\r\n          Warning: Initialization failed. Will retry at next iteration\r\n      - Collected 0 metrics, 0 events & 1 service check\r\n  \r\n  \r\n  Emitters\r\n  ========\r\n  \r\n    - http_emitter [OK]\r\n\r\n===================\r\nDogstatsd (v 5.8.4)\r\n===================\r\n\r\n  Status date: 2016-07-12 12:49:35 (1s ago)\r\n  Pid: 1018\r\n  Platform: Linux-3.16.0-4-amd64-x86_64-with-debian-8.5\r\n  Python Version: 2.7.11, 64bit\r\n  Logs: <stderr>, /var/log/datadog/dogstatsd.log, syslog:/dev/log\r\n\r\n  Flush count: 16\r\n  Packet Count: 0\r\n  Packets per second: 0.0\r\n  Metric count: 1\r\n  Event count: 0\r\n  Service check count: 0\r\n\r\n===================\r\nForwarder (v 5.8.4)\r\n===================\r\n\r\n  Status date: 2016-07-12 12:49:35 (2s ago)\r\n  Pid: 1020\r\n  Platform: Linux-3.16.0-4-amd64-x86_64-with-debian-8.5\r\n  Python Version: 2.7.11, 64bit\r\n  Logs: <stderr>, /var/log/datadog/forwarder.log, syslog:/dev/log\r\n\r\n  Queue Size: 463 bytes\r\n  Queue Length: 1\r\n  Flush Count: 48\r\n  Transactions received: 24\r\n  Transactions flushed: 23\r\n  Transactions rejected: 0\r\n```\r\n\r\nDocker is installed and the `dd-agent` user has access to it:\r\n\r\n```\r\n$ su dd-agent\r\n$ docker ps\r\nCONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                         NAMES\r\n51a802837dd8        nginx               \"nginx -g 'daemon off\"   10 minutes ago      Up 2 minutes        0.0.0.0:80->80/tcp, 443/tcp   nginx\r\n```"},"comment":{"url":"https://api.github.com/repos/DataDog/dd-agent/issues/comments/247124007","html_url":"https://github.com/DataDog/dd-agent/issues/2680#issuecomment-247124007","issue_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2680","id":247124007,"user":{"login":"adilr00t","id":1929963,"avatar_url":"https://avatars.githubusercontent.com/u/1929963?v=3","gravatar_id":"","url":"https://api.github.com/users/adilr00t","html_url":"https://github.com/adilr00t","followers_url":"https://api.github.com/users/adilr00t/followers","following_url":"https://api.github.com/users/adilr00t/following{/other_user}","gists_url":"https://api.github.com/users/adilr00t/gists{/gist_id}","starred_url":"https://api.github.com/users/adilr00t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adilr00t/subscriptions","organizations_url":"https://api.github.com/users/adilr00t/orgs","repos_url":"https://api.github.com/users/adilr00t/repos","events_url":"https://api.github.com/users/adilr00t/events{/privacy}","received_events_url":"https://api.github.com/users/adilr00t/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T19:18:08Z","updated_at":"2016-09-14T19:18:08Z","body":"ok fixed by adding `GRUB_CMDLINE_LINUX=\"cgroup_enable=memory swapaccount=1\"` to `/etc/default/grub` \r\n\r\nupdate grub `sudo update-grub`\r\n\r\nand reboot `sudo shutdown -r now`"}}
{"actor":{"display_login":"adilr00t"}}