{"action":"created","issue":{"url":"https://api.github.com/repos/DataDog/datadog-agent/issues/2182","repository_url":"https://api.github.com/repos/DataDog/datadog-agent","labels_url":"https://api.github.com/repos/DataDog/datadog-agent/issues/2182/labels{/name}","comments_url":"https://api.github.com/repos/DataDog/datadog-agent/issues/2182/comments","events_url":"https://api.github.com/repos/DataDog/datadog-agent/issues/2182/events","html_url":"https://github.com/DataDog/datadog-agent/issues/2182","id":351864655,"node_id":"MDU6SXNzdWUzNTE4NjQ2NTU=","number":2182,"title":"Agent manually installed on Docker (Debian) but traces not handled","user":{"login":"mblasi","id":40089,"node_id":"MDQ6VXNlcjQwMDg5","avatar_url":"https://avatars2.githubusercontent.com/u/40089?v=4","gravatar_id":"","url":"https://api.github.com/users/mblasi","html_url":"https://github.com/mblasi","followers_url":"https://api.github.com/users/mblasi/followers","following_url":"https://api.github.com/users/mblasi/following{/other_user}","gists_url":"https://api.github.com/users/mblasi/gists{/gist_id}","starred_url":"https://api.github.com/users/mblasi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mblasi/subscriptions","organizations_url":"https://api.github.com/users/mblasi/orgs","repos_url":"https://api.github.com/users/mblasi/repos","events_url":"https://api.github.com/users/mblasi/events{/privacy}","received_events_url":"https://api.github.com/users/mblasi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-19T01:18:03Z","updated_at":"2018-08-20T15:16:59Z","closed_at":null,"author_association":"NONE","body":"\r\n**Describe what happened:**\r\n\r\nI'm trying to make agent traces work on app engine flex environment.\r\nMy instances run debian 9.\r\nI get the agent it installed using the manual steps:\r\n\r\n```\r\nRUN apt-get update\r\nRUN apt-get install -y gnupg apt-transport-https\r\nRUN sh -c \"echo 'deb https://apt.datadoghq.com/ stable 6' > /etc/apt/sources.list.d/datadog.list\"\r\nRUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 382E94DE\r\nADD datadog.yaml /etc/datadog-agent/datadog.yaml\r\nRUN apt-get update\r\nRUN apt-get install datadog-agent\r\n```\r\n\r\nThe agent starts, but it looks like no traces are handled, I see this in my application log:\r\n\r\n2018/08/19 00:01:25 errors.go:72: Datadog Exporter error: Post http://localhost:8126/v0.3/traces: dial tcp [::1]:8126: connect: connection refused (x2)\r\n\r\nI tried to diagnose the status by adding a last line in the installation process (Dockerfile):\r\n\r\n```\r\nRUN datadog-agent status\r\n```\r\n\r\nBut it fails:\r\n\r\nError: Get https://localhost:5001/agent/status: dial tcp 127.0.0.1:5001: connect: connection refused\r\n\r\n**Describe what you expected:**\r\n\r\nI expect to have the agent and traces running on my app instances.\r\n\r\n**Steps to reproduce the issue:**\r\n\r\n\r\n**Additional environment details (Operating System, Cloud provider, etc):**\r\n\r\nOS: Debian 9\r\nCloud: Google cloud app engine flexible\r\nRuntime: custom\r\nLanguage: golang\r\n\r\nMy datadog.yaml enables the traces:\r\n\r\n```\r\napm_config:\r\n  enabled: true\r\n  receiver_port: 8126\r\n```\r\n\r\nMy Dockerfile exports every port I think should:\r\n\r\n```\r\nEXPOSE 8125/udp\r\nEXPOSE 8126/tcp\r\nEXPOSE 5001/tcp\r\n```"},"comment":{"url":"https://api.github.com/repos/DataDog/datadog-agent/issues/comments/414354073","html_url":"https://github.com/DataDog/datadog-agent/issues/2182#issuecomment-414354073","issue_url":"https://api.github.com/repos/DataDog/datadog-agent/issues/2182","id":414354073,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDM1NDA3Mw==","user":{"login":"mblasi","id":40089,"node_id":"MDQ6VXNlcjQwMDg5","avatar_url":"https://avatars2.githubusercontent.com/u/40089?v=4","gravatar_id":"","url":"https://api.github.com/users/mblasi","html_url":"https://github.com/mblasi","followers_url":"https://api.github.com/users/mblasi/followers","following_url":"https://api.github.com/users/mblasi/following{/other_user}","gists_url":"https://api.github.com/users/mblasi/gists{/gist_id}","starred_url":"https://api.github.com/users/mblasi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mblasi/subscriptions","organizations_url":"https://api.github.com/users/mblasi/orgs","repos_url":"https://api.github.com/users/mblasi/repos","events_url":"https://api.github.com/users/mblasi/events{/privacy}","received_events_url":"https://api.github.com/users/mblasi/received_events","type":"User","site_admin":false},"created_at":"2018-08-20T15:16:59Z","updated_at":"2018-08-20T15:16:59Z","author_association":"NONE","body":"Hi @hkaj ,\r\n\r\nI tried lots of ways... every one with a different issue.\r\n\r\nNow I'm trying with building the client from the sources, and I get system metrics reported (mem, cpu, net) but traces are still not handled (same error reported here), looks like apm.enabled is not true, but it is!\r\n\r\nI think the biggest help from you could be: which way should be the recommended for my scenario: GAE Flex environment??? (From datadog support answered me that it is not supported up to now, but I think I should be able to start the agent with a custom runtime).\r\n\r\nThe 4 ways I'm trying are:\r\n\r\n1 - The official one-step installation (https://app.datadoghq.com/account/settings#agent/debian). It looks like systemd needed, and the gae debian docker image doesn't have.\r\n2 - The official manual installation (https://app.datadoghq.com/account/settings#agent/debian). Service starts, service metrics reported, but no traces handled.\r\n3 - Building the agent from the sources (following https://github.com/DataDog/datadog-agent), client looks like started but nothing reported.\r\n4 - Run the agent in a different docker container (https://docs.datadoghq.com/tracing/setup/docker/) I think I should create a new service of my GAE and configure the docker network in both services, and the traces hostname in my app service... not tried yet.\r\n\r\nThe most working way looks like the 2nd, but the traces are not handled:\r\n\r\n2018/08/19 00:01:25 errors.go:72: Datadog Exporter error: Post http://localhost:8126/v0.3/traces: dial tcp [::1]:8126: connect: connection refused (x2)\r\n\r\nMy datadog.yaml has the apm.enabled=true... I don't know why the agent is not handling the /traces resource... could it be related to any docker networking internal??\r\n\r\nBefore continue loosing time between this ways, let me know which one should be for my scenario.\r\n\r\nRegards,\r\nMatías."}}
{"actor":{"display_login":"mblasi"}}