{"action":"created","issue":{"url":"https://api.github.com/repos/DataDog/datadog-agent/issues/2383","repository_url":"https://api.github.com/repos/DataDog/datadog-agent","labels_url":"https://api.github.com/repos/DataDog/datadog-agent/issues/2383/labels{/name}","comments_url":"https://api.github.com/repos/DataDog/datadog-agent/issues/2383/comments","events_url":"https://api.github.com/repos/DataDog/datadog-agent/issues/2383/events","html_url":"https://github.com/DataDog/datadog-agent/issues/2383","id":364818088,"node_id":"MDU6SXNzdWUzNjQ4MTgwODg=","number":2383,"title":"Agent v6.5.2 broken logs from docker","user":{"login":"undiabler","id":4733217,"node_id":"MDQ6VXNlcjQ3MzMyMTc=","avatar_url":"https://avatars2.githubusercontent.com/u/4733217?v=4","gravatar_id":"","url":"https://api.github.com/users/undiabler","html_url":"https://github.com/undiabler","followers_url":"https://api.github.com/users/undiabler/followers","following_url":"https://api.github.com/users/undiabler/following{/other_user}","gists_url":"https://api.github.com/users/undiabler/gists{/gist_id}","starred_url":"https://api.github.com/users/undiabler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/undiabler/subscriptions","organizations_url":"https://api.github.com/users/undiabler/orgs","repos_url":"https://api.github.com/users/undiabler/repos","events_url":"https://api.github.com/users/undiabler/events{/privacy}","received_events_url":"https://api.github.com/users/undiabler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-28T09:48:34Z","updated_at":"2018-09-28T19:20:07Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nIf you suspect your issue is a bug, please attach the output of the Agent status page,\r\nsee https://docs.datadoghq.com/agent/faq/agent-commands/#agent-information\r\n-->\r\n\r\n**Output of the info page (if this is a bug)**\r\n```\r\n\r\n==============\r\nAgent (v6.5.2)\r\n==============\r\n\r\n  Status date: 2018-09-28 09:34:53.577571 UTC\r\n  Pid: 808\r\n  Python Version: 2.7.15\r\n  Logs: \r\n  Check Runners: 4\r\n  Log Level: info\r\n\r\n  Paths\r\n  =====\r\n    Config File: /etc/datadog-agent/datadog.yaml\r\n    conf.d: /etc/datadog-agent/conf.d\r\n    checks.d: /etc/datadog-agent/checks.d\r\n\r\n  Clocks\r\n  ======\r\n    NTP offset: -346µs\r\n    System UTC time: 2018-09-28 09:34:53.577571 UTC\r\n\r\n  Host Info\r\n  =========\r\n    bootTime: 2018-09-27 19:59:30.000000 UTC\r\n    kernelVersion: 3.10.0-693.2.2.el7.x86_64\r\n    os: linux\r\n    platform: centos\r\n    platformFamily: rhel\r\n    platformVersion: 7.4.1708\r\n    procs: 148\r\n    uptime: 11s\r\n\r\n  Hostnames\r\n  =========\r\n    hostname: k***s.com\r\n    socket-fqdn: h***2.hostwindsdns.com.\r\n    socket-hostname: h***2.hostwindsdns.com\r\n    hostname provider: configuration\r\n\r\n=========\r\nCollector\r\n=========\r\n\r\n  Running Checks\r\n  ==============\r\n    \r\n    cpu\r\n    ---\r\n        Instance ID: cpu [OK]\r\n        Total Runs: 3,261\r\n        Metric Samples: 6, Total: 19,560\r\n        Events: 0, Total: 0\r\n        Service Checks: 0, Total: 0\r\n        Average Execution Time : 0s\r\n        \r\n    \r\n    disk (1.3.0)\r\n    ------------\r\n        Instance ID: disk:e5dffb8bef24336f [OK]\r\n        Total Runs: 3,261\r\n        Metric Samples: 58, Total: 175,170\r\n        Events: 0, Total: 0\r\n        Service Checks: 0, Total: 0\r\n        Average Execution Time : 40ms\r\n        \r\n    \r\n    file_handle\r\n    -----------\r\n        Instance ID: file_handle [OK]\r\n        Total Runs: 3,260\r\n        Metric Samples: 5, Total: 16,300\r\n        Events: 0, Total: 0\r\n        Service Checks: 0, Total: 0\r\n        Average Execution Time : 0s\r\n        \r\n    \r\n    io\r\n    --\r\n        Instance ID: io [OK]\r\n        Total Runs: 3,261\r\n        Metric Samples: 26, Total: 84,768\r\n        Events: 0, Total: 0\r\n        Service Checks: 0, Total: 0\r\n        Average Execution Time : 3ms\r\n        \r\n    \r\n    load\r\n    ----\r\n        Instance ID: load [OK]\r\n        Total Runs: 3,260\r\n        Metric Samples: 6, Total: 19,560\r\n        Events: 0, Total: 0\r\n        Service Checks: 0, Total: 0\r\n        Average Execution Time : 0s\r\n        \r\n    \r\n    memory\r\n    ------\r\n        Instance ID: memory [OK]\r\n        Total Runs: 3,261\r\n        Metric Samples: 17, Total: 55,437\r\n        Events: 0, Total: 0\r\n        Service Checks: 0, Total: 0\r\n        Average Execution Time : 0s\r\n        \r\n    \r\n    network (1.6.1)\r\n    ---------------\r\n        Instance ID: network:2a218184ebe03606 [OK]\r\n        Total Runs: 3,261\r\n        Metric Samples: 32, Total: 104,340\r\n        Events: 0, Total: 0\r\n        Service Checks: 0, Total: 0\r\n        Average Execution Time : 1ms\r\n        \r\n    \r\n    ntp\r\n    ---\r\n        Instance ID: ntp:b4579e02d1981c12 [OK]\r\n        Total Runs: 3,261\r\n        Metric Samples: 1, Total: 3,261\r\n        Events: 0, Total: 0\r\n        Service Checks: 1, Total: 3,261\r\n        Average Execution Time : 31ms\r\n        \r\n    \r\n    uptime\r\n    ------\r\n        Instance ID: uptime [OK]\r\n        Total Runs: 3,261\r\n        Metric Samples: 1, Total: 3,261\r\n        Events: 0, Total: 0\r\n        Service Checks: 0, Total: 0\r\n        Average Execution Time : 0s\r\n        \r\n========\r\nJMXFetch\r\n========\r\n\r\n  Initialized checks\r\n  ==================\r\n    no checks\r\n    \r\n  Failed checks\r\n  =============\r\n    no checks\r\n    \r\n=========\r\nForwarder\r\n=========\r\n\r\n  CheckRunsV1: 3,260\r\n  Dropped: 0\r\n  DroppedOnInput: 0\r\n  Errors: 81\r\n  Events: 0\r\n  HostMetadata: 0\r\n  IntakeV1: 249\r\n  Metadata: 0\r\n  Requeued: 87\r\n  Retried: 82\r\n  RetryQueueSize: 0\r\n  Series: 0\r\n  ServiceChecks: 0\r\n  SketchSeries: 0\r\n  Success: 6,769\r\n  TimeseriesV1: 3,260\r\n\r\n  API Keys status\r\n  ===============\r\n    API key ending in 24fb5 for endpoint https://app.datadoghq.com: API Key valid\r\n\r\n==========\r\nLogs Agent\r\n==========\r\n\r\n  custom\r\n  ------\r\n    Type: docker\r\n    Name: front-container\r\n    Status: Pending\r\n  \r\n=========\r\nDogStatsD\r\n=========\r\n\r\n  Checks Metric Sample: 533,936\r\n  Event: 1\r\n  Events Flushed: 1\r\n  Number Of Flushes: 3,260\r\n  Series Flushed: 420,505\r\n  Service Check: 29,401\r\n  Service Checks Flushed: 32,652\r\n\r\n\r\n```\r\n\r\n**Describe what happened:**\r\nLogs Agent dont collect logs, just pending.\r\n\r\n**Describe what you expected:**\r\nAgent (v6.4.2) works as expected (installed on same server 4/9/2018 13:08)\r\n```\r\n  custom\r\n  ------\r\n    Type: docker\r\n    Name: front-container\r\n    Status: OK\r\n    Inputs: 99b00c7d6467b686ce83333dfb86e5297cd20cd1810b99e0ac32dd218cadade1 \r\n```\r\n\r\n\r\n**Steps to reproduce the issue:**\r\nAgent (v6.4.2), Docker version 18.06.1-ce, build e68fc7a - **working**\r\nAgent (v6.5.2), Docker version 18.06.1-ce, build e68fc7a - **not working**\r\n\r\n/etc/datadog-agent/conf.d/custom.yaml\r\n```\r\nlogs:\r\n  - type: docker\r\n    name: front-container\r\n    source: nginx\r\n    service: docker\r\n```\r\ndatadog.yaml\r\n```\r\ndd_url: https://app.datadoghq.com\r\n\r\napi_key: a***5\r\n\r\nhostname: k***s.com\r\n\r\ntags:\r\n  - role:shop-front\r\n\r\nlogs_enabled: true\r\n```\r\n\r\n**Additional environment details (Operating System, Cloud provider, etc):**\r\nCentos 7,  Docker version 18.06.1-ce  \r\nDigital Ocean/Hostwindsdns - same problem\r\n"},"comment":{"url":"https://api.github.com/repos/DataDog/datadog-agent/issues/comments/425539711","html_url":"https://github.com/DataDog/datadog-agent/issues/2383#issuecomment-425539711","issue_url":"https://api.github.com/repos/DataDog/datadog-agent/issues/2383","id":425539711,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTUzOTcxMQ==","user":{"login":"btsuhako","id":2069065,"node_id":"MDQ6VXNlcjIwNjkwNjU=","avatar_url":"https://avatars2.githubusercontent.com/u/2069065?v=4","gravatar_id":"","url":"https://api.github.com/users/btsuhako","html_url":"https://github.com/btsuhako","followers_url":"https://api.github.com/users/btsuhako/followers","following_url":"https://api.github.com/users/btsuhako/following{/other_user}","gists_url":"https://api.github.com/users/btsuhako/gists{/gist_id}","starred_url":"https://api.github.com/users/btsuhako/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btsuhako/subscriptions","organizations_url":"https://api.github.com/users/btsuhako/orgs","repos_url":"https://api.github.com/users/btsuhako/repos","events_url":"https://api.github.com/users/btsuhako/events{/privacy}","received_events_url":"https://api.github.com/users/btsuhako/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T19:20:07Z","updated_at":"2018-09-28T19:20:07Z","author_association":"NONE","body":"Also seeing a similar problem with `v6.5.2`. We are using Docker labels on our app containers to configure the Datadog container agent on hosts running Docker version `18.06.1-ce`. Seems like Datadog is having a problem with parsing container labels, which didn't change when we upgraded Datadog\r\n\r\n```\r\n[ AGENT ] 2018-09-27 22:54:20 UTC | INFO | (file.go:70 in Collect) | File: searching for configuration files at: /etc/datadog-agent/conf.d\r\n[ AGENT ] 2018-09-27 22:54:20 UTC | INFO | (tailer.go:86 in Start) | Start tailing container: e***1\r\n[ AGENT ] 2018-09-27 22:54:20 UTC | INFO | (file.go:70 in Collect) | File: searching for configuration files at: /opt/datadog-agent/bin/agent/dist/conf.d\r\n[ AGENT ] 2018-09-27 22:54:20 UTC | WARN | (file.go:74 in Collect) | Skipping, open /opt/datadog-agent/bin/agent/dist/conf.d: no such file or directory\r\n[ AGENT ] 2018-09-27 22:54:20 UTC | INFO | (file.go:70 in Collect) | File: searching for configuration files at:\r\n[ AGENT ] 2018-09-27 22:54:20 UTC | WARN | (file.go:74 in Collect) | Skipping, open : no such file or directory\r\n[ AGENT ] 2018-09-27 22:54:20 UTC | ERROR | (docker.go:126 in parseDockerLabels) | Can't parse template for container c***9: missing instances key\r\n[ AGENT ] 2018-09-27 22:54:20 UTC | ERROR | (docker.go:126 in parseDockerLabels) | Can't parse template for container d***f: missing instances key\r\n[ AGENT ] 2018-09-27 22:54:20 UTC | ERROR | (docker.go:126 in parseDockerLabels) | Can't parse template for container 8***5: missing instances key\r\n[ AGENT ] 2018-09-27 22:54:20 UTC | WARN | (check.go:250 in Configure) | could not get a check instance with the new api: __init__() takes at least 4 arguments (4 given)\r\n[ AGENT ] 2018-09-27 22:54:20 UTC | WARN | (check.go:251 in Configure) | trying to instantiate the check with the old api, passing agentConfig to the constructor\r\n[ AGENT ] 2018-09-27 22:54:20 UTC | WARN | (check.go:276 in Configure) | passing `agentConfig` to the constructor is deprecated, please use the `get_config` function from the 'datadog_agent' package (disk).\r\n[ AGENT ] 2018-09-27 22:54:20 UTC | WARN | (check.go:250 in Configure) | could not get a check instance with the new api: __init__() takes at least 4 arguments (4 given)\r\n[ AGENT ] 2018-09-27 22:54:20 UTC | WARN | (check.go:251 in Configure) | trying to instantiate the check with the old api, passing agentConfig to the constructor\r\n[ AGENT ] 2018-09-27 22:54:20 UTC | WARN | (check.go:276 in Configure) | passing `agentConfig` to the constructor is deprecated, please use the `get_config` function from the 'datadog_agent' package (network).\r\n```"}}
{"actor":{"display_login":"btsuhako"}}