Datadog APM Setup

Hello @0xbitmonk,

As the pod annotation is not available, you can instrument your application using the manual method. You can refer to the forum post I previously shared, where you will find an example of manual injection for a Java application. There is also a link to an application example along with its Dockerfile.

For the pod agent, as said by the Datadog support,

For kubernetes, the agent and the application are on the same host so it would just use a socket, or you can use TCP over port 8126 on the local host where the agent is listening on.

so why do you think you can’t do the manual injection?

We tried with the code injection (manual) way first and found that it doesn’t work in the kubernetes deployment. That’s because it’s agent URL defaults to 127.0.0.1:8126 and in our case, we need to find this everytime it changes (due to app pod restart or datadog agent pods restart).