-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] OTLP endpoints are not available #13495
Comments
Thanks for reporting this @kaniak274! This took me a while to understand but I believe I see what happened now. With this Docker compose file I am able to reproduce your issue: Faulty Docker compose file (click to expand)version: "3.9"
services:
d-agent:
image: datadog/agent:latest
ports:
- "4317:4317"
- "4318:4318"
environment:
- DD_API_KEY=""
- DD_SITE=datadoghq.eu
- DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true
- DD_APM_ENABLED=true
- DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT="0.0.0.0:4317"
- DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT="0.0.0.0:4318"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /proc/:/host/proc/:ro
- /sys/fs/cgroup:/host/sys/fs/cgroup:ro The main OTLP endpoint fails to start, and I can see the following error in the logs:
EDIT: It's easier to see this on the status; If I run
Everything else is as you describe: port 5003 is available, while the ports defined in the configuration are not. By removing the quotes, I am able to make it work: Working Docker compose file (click to expand)version: "3.9"
services:
d-agent:
image: datadog/agent:latest
ports:
- "4317:4317"
- "4318:4318"
environment:
- DD_API_KEY=""
- DD_SITE=datadoghq.eu
- DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true
- DD_APM_ENABLED=true
- DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT=0.0.0.0:4317 # <-- No quotes!
- DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT=0.0.0.0:4318 # <-- No quotes!
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /proc/:/host/proc/:ro
- /sys/fs/cgroup:/host/sys/fs/cgroup:ro The problem is that Docker compose will pass whatever is to the right of the equals sign to the application, so we got Could you confirm if this solves the issue for you? |
I will check. Thank you! |
Ahh. You're right, I missed that! Thank you very much for help! |
Awesome, I am glad that helped :) |
Hello! I found a very strange issue that looks like a bug. Here is the problem:
Agent Environment
I'm using the latest version of the agent (from 2 days ago) with docker-compose:
Also, I tried other images like
7.35.0
or7.31.0
did not work on neither of them.Describe what happened:
I tried the OTLP ingest using the provided documentation. The problem is that neither
4317
nor4318
ports are not up. It does not look like a problem is within my configuration, unless I should do something that is not described in the docs. I also was searching for the4317
&4318
ports but no success either.I started debugging a little bit and:
I opened the agent shell and executed
lsof
command inside it:as you can see there is nothing running on the
4317
nor4318
.Then I used Google and I found this issue. I started using
5003
port and it worked (the trace was visible in the Datadog UI) but that's probably not what I should do given that it's not described in the documentation ;).Next, I started searching in the source code and I found this commit that removes the old variables. I was searching in the lastest
main
forDD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT
&DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT
but they are never used besides the tests.Describe what you expected:
I expect that the agent will run something on these ports ;)
Steps to reproduce the issue:
Run the
datadog-agent
container.Additional environment details (Operating System, Cloud provider, etc):
Docker, Linux
Thanks in advance for the help!
The text was updated successfully, but these errors were encountered: