How to setup java agent name? The java agent is installed with a application which is running as a container in Kubernetes cluster.
Add the following to the JVM parameters. You can add this at same location where you are setting up APM agent configuration in the JVM parameters.
-Dintroscope.agent.agentName=${AGENTNAME}
Note: AGENTNAME is environment variables with a value which is defined in the container deployment file for the java application.
Redeploy the java application POD. Check the agent name in the APM UI.