AppDynamics Knowledge Base

Troubleshooting Machine Agent Visibility in Application Containers Tab

Troubleshooting Machine Agent Visibility in Application Containers Tab

Ensuring Machine Agent Containers Appear in the AppDynamics UI

Containers with APM agents will show up in Application -> Containers view

In this example we have Machine Agent running in Amazon Linux 2

For this to work:

  • You should have your App Agent UNIQUE_HOST_ID as the first 12 characters of your container ID
  •  Sign in to AppD UI
  • Go to Settings wheel icon on top right -> AppDynamics Agent -> App Agent and search for this Agent
  • Please confirm the unique-host-id for me
  • If the UNIQUE_HOST_ID is the first 12 characters of your Container ID then we would need to pass the below JVM argument and restart your Machine Agent
    -Dappdynamics.docker.container.containerIdAsHostId.enabled=true
  • You can pass this JVM argument while starting up the Machine agent
    java -Dappdynamics.docker.container.containerIdAsHostId.enabled=true  -jar machineagent.jar
  • Or you can edit the process file at <MA-Home>/bin/machine-agent and edit:
    JAVA_OPTS="$JAVAOPTS -Xmx256m -Dappdynamics.docker.container.containerIdAsHostId.enabled=true"

image.png

image.png

​In the scenario where your UNIQUE_HOST_ID for Java Agent isn't the first 12 characters of your container ID then please provide the below and file a support ticket with AppDynamics

  • docker ps
  • cat /proc/self/cgroup
  • cat /etc/os-release
  • docker exec -it <container-name> hostname
  • Share the JVM arguments/configuration properties you are passing
  • Support will be able to replicate and help provide a fix

Ideally, your correlation and complete solution should look like the screenshots attached above.

Labels (1)
Version history
Last update:
‎06-10-2024 08:37 AM
Updated by: