cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Abhi.Bajaj
AppDynamics Team

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"

AbhiBajaj_0-1717970130866.png

AbhiBajaj_1-1717970130867.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.

Version history
Last update:
‎06-25-2024 09:44 AM
Updated by:
On-Demand Webinar
Discover new Splunk integrations and AI innovations for Cisco AppDynamics.


Register Now!

Observe and Explore
Dive into our Community Blog for the Latest Insights and Updates!


Read the blog here