Can't reach datadog agent

Hey folks! I'm trying to launch a datadog agent via docker on Railway. It works when I run it locally on my mac, but I can't seem to make requests to it when I launch it on railway. Is there something special I need to do with exposing ports? Here's the docker file:
FROM datadog/agent

ENV DD_APM_NON_LOCAL_TRAFFIC=true
ENV DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true

ARG DD_API_KEY
ARG DD_SITE
ARG DD_HOSTNAME

EXPOSE 8125/udp
EXPOSE 8126/udp
FROM datadog/agent

ENV DD_APM_NON_LOCAL_TRAFFIC=true
ENV DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true

ARG DD_API_KEY
ARG DD_SITE
ARG DD_HOSTNAME

EXPOSE 8125/udp
EXPOSE 8126/udp
I can confirm the agent starts just fine and seems to be checking for metrics. I just can't call it from the outside. Been trying like this (again, works locally): echo -n "rainmaker.backend.express.router.response_code.200:55|g|#shell" | nc -4u -w0 datadog-agent-production-2d86.up.railway.app 8125
5 Replies
Percy
Percy2y ago
Project ID: b08731c2-2a20-4ba4-b7b2-a97b42af589f
btraut
btraut2y ago
b08731c2-2a20-4ba4-b7b2-a97b42af589f
Brody
Brody2y ago
for the time being you can only run http services, railway does not support TCP/UDP and you can only access the services externally from port 443
btraut
btraut2y ago
Got it, thanks.
Brody
Brody2y ago
no prob!
Want results from more Discord servers?
Add your server