Manually Configure App Agents to Correlate with the Cluster Agent Using Kubernetes1.25 or Higher
containerAppCorrelationMethod
to proxy
. This is required for the agents to retrieve the container ID of the application container. When you enable auto-instrumentation using the proceeding steps, auto-instrumentation does not instrument the application but starts the container metadata server to fetch the container ID.You can choose to ignore specific namespaces by using the nsToExcludeRegex parameter.
The Java Agent depends on the HOSTNAME environment variable, using it as the pod name to query the Cluster Agent. It is important to keep these variables unchanged to accurately extract the container ID.