R
Railway16mo ago
cnnr

DataDog Agent Connection Help

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?
8 Replies
Percy
Percy16mo ago
Project ID: 9c41e196-5568-4e75-85e0-0aa8aac79840
cnnr
cnnrOP16mo ago
9c41e196-5568-4e75-85e0-0aa8aac79840
Brody
Brody16mo ago
is the host for datadog set to ::
cnnr
cnnrOP16mo ago
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"]
# 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"]
Brody
Brody16mo ago
what's in init
cnnr
cnnrOP16mo ago
Okay, sorry. TBH, I don't know what is in init. I got it from here: https://discord.com/channels/713503345364697088/1139015818181611570/1139015818181611570 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.
johns
johns16mo ago
@cnnr Did you define DD_AGENT_HOST="datadog-agent.railway.internal" from the service that you're trying to connect to the dd agent?
cnnr
cnnrOP13mo ago
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 :/ This still doesnt work 🙁
Want results from more Discord servers?
Add your server