#DataDog Agent Connection Help

1 messages · Page 1 of 1 (latest)

little seal
#

I noticed some other people seem to have been successful running a datadog agent as a separate service within a project and turning on private networking.

I have a datadog-agent running in the project with private networking turned on but doesn't seem like anything is coming through (I think I have everything setup properly). Any ideas on how I can ping the datadog-agent to see if that part is in fact running properly? I tried to curl it but I'm not sure how to have that work with ipv6. Any ideas?

swift heartBOT
#

Project ID: 9c41e196-5568-4e75-85e0-0aa8aac79840

runic vergeBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

little seal
#

9c41e196-5568-4e75-85e0-0aa8aac79840

grizzled spoke
#

is the host for datadog set to ::

little seal
#

This is what the dockerfile looks like:

# Start from the official Datadog agent image
FROM datadog/agent:7

ENV DD_HOSTNAME="datadog-agent.railway.internal"
ENV DD_APM_ENABLED=true
ENV DD_APM_NON_LOCAL_TRAFFIC=true
ENV DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true
ENV DD_BIND_HOST=::

ARG DD_API_KEY

# expose the port for dogstatsd explicitly
EXPOSE 8125/udp

# Start the Datadog agent
CMD ["/init"]
grizzled spoke
#

what's in init

little seal
#

Okay, sorry. TBH, I don't know what is in init. I got it from here: #1139015818181611570 message

Removing it doesn't seem to make a difference though. The agent container seems to run properly. Just can't seem to talk to it.

wraith dew
#

@little seal Did you define DD_AGENT_HOST="datadog-agent.railway.internal" from the service that you're trying to connect to the dd agent?

little seal
#

Not that exact environment variable, but I do have a DD_HOST set to that value and then I use that to initialize the statsd client I'm using in the application to emit the metrics. Still no dice unfortunately :/