<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: No Container Visibility in AppDynamics in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/No-Container-Visibility-in-AppDynamics/m-p/737467#M10435</link>
    <description>&lt;P&gt;Hi Christian&lt;/P&gt;

&lt;P&gt;Lets first resolve the correlation between the Machine agent and the App Agent correlation&lt;/P&gt;

&lt;P&gt;From what I can see it's most likely due to the "unique host id" value that is being detected&lt;/P&gt;

&lt;P&gt;You can read a bit up on this here&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.appdynamics.com/display/PRO20X/Monitoring+Containers+with+Docker+Visibility" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO20X/Monitoring+Containers+with+Docker+Visibility&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Extract below from link above&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;In a BRIDGE networking mode, the containers take on the container ID as the host name. If networking is in host mode, then the containers take on the node name of the host ID. This means every container on that node has the same host ID. In this case you need to use the unique host ID settings&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Please check this and see if this is the problem, then you can set the uniquehost id accordingly&lt;/P&gt;

&lt;P&gt;You can quickly see what happens, go into the Controller Admin Menu where you view the agents.&lt;/P&gt;

&lt;P&gt;Check what the unique host id value is for both the java agent and the machine agent, are they both the same?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Ciao&lt;/P&gt;</description>
    <pubDate>Thu, 08 Apr 2021 13:31:52 GMT</pubDate>
    <dc:creator>Morelz</dc:creator>
    <dc:date>2021-04-08T13:31:52Z</dc:date>
    <item>
      <title>No Container Visibility in AppDynamics</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/No-Container-Visibility-in-AppDynamics/m-p/737464#M10432</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are using a standalone machine agent to monitor a java application which is deployed in a Docker container. The machine agent is installed in a standalone container.&lt;/P&gt;&lt;P&gt;Our Dockerfile, where the directory ./AppServerAgent contains the machine agent:&lt;/P&gt;&lt;PRE&gt;FROM openjdk

WORKDIR /app

ENV APPDYNAMICS_AGENT_APPLICATION_NAME=petclinic
ENV APPDYNAMICS_AGENT_TIER_NAME=petclinic-tier
ENV APPDYNAMICS_AGENT_ACCOUNT_NAME=customer1
ENV APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY=41130855-4203-471e-a836-3d241c9e8794
ENV APPDYNAMICS_CONTROLLER_HOST_NAME=ec2-3-122-240-100.eu-central-1.compute.amazonaws.com
ENV APPDYNAMICS_CONTROLLER_PORT=8090
ENV APPDYNAMICS_CONTROLLER_SSL_ENABLED=false
ENV APPDYNAMICS_AGENT_NODE_NAME=petclinic-node

COPY ./AppServerAgent/ /opt/appdynamics/
COPY ./target ./target

CMD ["java", "-javaagent:/opt/appdynamics/javaagent.jar", "-jar", "target/spring-petclinic-2.4.2.jar"]&lt;/PRE&gt;&lt;P&gt;We use the official docker image of AppDynamics from the Docker Hub:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; docker pull store/appdynamics/machine:4.5 &lt;/PRE&gt;&lt;P&gt;And run the container with the following parameters referring to our on-prem AppD Controller:&lt;/P&gt;&lt;PRE&gt;docker run -d \
-e APPDYNAMICS_CONTROLLER_HOST_NAME=ec2-3-122-240-100.eu-central-1.compute.amazonaws.com \
-e APPDYNAMICS_CONTROLLER_PORT=8090 \
-e APPDYNAMICS_CONTROLLER_SSL_ENABLED=false \
-e APPDYNAMICS_AGENT_ACCOUNT_NAME=customer1 \
-e APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY=41130855-4203-471e-a836-3d241c9e8794 \
-e MACHINE_AGENT_PROPERTIES="-Dappdynamics.sim.enabled=true -Dappdynamics.docker.enabled=true" \
-v /proc:/hostroot/proc:ro -v /sys:/hostroot/sys:ro -v /etc:/hostroot/etc:ro -v /var/run/docker.sock:/var/run/docker.sock \
appdynamics/machine:4.5&lt;/PRE&gt;&lt;P&gt;Although the application is instrumented successfully, we can't view any Container.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-04-07 at 16.55.37.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35349i62E1CF32B111FFE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-04-07 at 16.53.39.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35347iCB9E51E9913306F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We have enabled Server and Docker Visibility&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;our License is also fine&lt;/SPAN&gt;&lt;SPAN&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What are we missing? Thanks in advance and have a nice day!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 14:59:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/No-Container-Visibility-in-AppDynamics/m-p/737464#M10432</guid>
      <dc:creator>Christian_Brzes</dc:creator>
      <dc:date>2021-04-07T14:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: No Container Visibility in AppDynamics</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/No-Container-Visibility-in-AppDynamics/m-p/737465#M10433</link>
      <description>&lt;P&gt;Hi Christian&lt;/P&gt;

&lt;P&gt;Is the Machine agent registered to the petclinic Application? And does the Machine agent &amp;amp; Java agent run on the same host?&lt;/P&gt;

&lt;P&gt;If you click on servers,&lt;/P&gt;

&lt;P&gt;1. Does it list the machine agent, which runs on the host that the Java Container runs on?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Does it under "Running on Container" field say "Yes"?&lt;/P&gt;

&lt;P&gt;Can you add the following parameter to the "MACHINE_AGENT_PROPERTIES" section&lt;/P&gt;
&lt;P&gt;-Dappdynamics.docker.container.containerIdAsHostId.enabled=true&lt;/P&gt;

&lt;P&gt;Restart and check that it appears as it should&lt;/P&gt;

&lt;P&gt;Ciao&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 18:30:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/No-Container-Visibility-in-AppDynamics/m-p/737465#M10433</guid>
      <dc:creator>Morelz</dc:creator>
      <dc:date>2021-04-07T18:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: No Container Visibility in AppDynamics</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/No-Container-Visibility-in-AppDynamics/m-p/737466#M10434</link>
      <description>&lt;P&gt;Hey Mario,&lt;/P&gt;&lt;P&gt;The machine agent and java agent are running on the same host.&amp;nbsp; I am running the machine agent as a standalone container by using the AppD image from the Docker Hub (docker pull store/appdynamics/machine:4.5). The petclinic application is running on a separate container instrumented with a java agent. I supposed that the container with the machine agent is able to detect the container with the petclinic application automatically, since it is instrumented with the java agent.&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;&lt;SPAN&gt;Is the Machine agent registered to the petclinic Application?&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How would I do that?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is what I see&amp;nbsp;when I click on Servers:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-04-08 at 14.15.21.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35352i7396953C8BB2B608/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Christian&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 12:17:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/No-Container-Visibility-in-AppDynamics/m-p/737466#M10434</guid>
      <dc:creator>Christian_Brzes</dc:creator>
      <dc:date>2021-04-08T12:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: No Container Visibility in AppDynamics</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/No-Container-Visibility-in-AppDynamics/m-p/737467#M10435</link>
      <description>&lt;P&gt;Hi Christian&lt;/P&gt;

&lt;P&gt;Lets first resolve the correlation between the Machine agent and the App Agent correlation&lt;/P&gt;

&lt;P&gt;From what I can see it's most likely due to the "unique host id" value that is being detected&lt;/P&gt;

&lt;P&gt;You can read a bit up on this here&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.appdynamics.com/display/PRO20X/Monitoring+Containers+with+Docker+Visibility" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO20X/Monitoring+Containers+with+Docker+Visibility&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Extract below from link above&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;In a BRIDGE networking mode, the containers take on the container ID as the host name. If networking is in host mode, then the containers take on the node name of the host ID. This means every container on that node has the same host ID. In this case you need to use the unique host ID settings&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Please check this and see if this is the problem, then you can set the uniquehost id accordingly&lt;/P&gt;

&lt;P&gt;You can quickly see what happens, go into the Controller Admin Menu where you view the agents.&lt;/P&gt;

&lt;P&gt;Check what the unique host id value is for both the java agent and the machine agent, are they both the same?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Ciao&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 13:31:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/No-Container-Visibility-in-AppDynamics/m-p/737467#M10435</guid>
      <dc:creator>Morelz</dc:creator>
      <dc:date>2021-04-08T13:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: No Container Visibility in AppDynamics</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/No-Container-Visibility-in-AppDynamics/m-p/737468#M10436</link>
      <description>&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;I have solved the issue by deploying the&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;Machine Agent Bundle&lt;/STRONG&gt; instead of the &lt;STRONG&gt;standalone Machine Agent&lt;/STRONG&gt;. As soon as I started the machine agent with&amp;nbsp;&lt;STRONG&gt;&amp;lt;sim-enabled&amp;gt;true&amp;lt;/sim-enabled&amp;gt;&lt;/STRONG&gt;&amp;nbsp;and&amp;nbsp;&lt;STRONG&gt;&amp;lt;docker-enabled&amp;gt;true&amp;lt;/docker-enabled&amp;gt; &lt;/STRONG&gt;set&amp;nbsp;to true in the&amp;nbsp;&lt;STRONG&gt;controller-info.xml&amp;nbsp;&lt;/STRONG&gt;it worked!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So summarized you need the following for Container Monitoring:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Server Agent Image from &lt;A href="https://hub.docker.com/_/appdynamics/plans/0b0f99f0-2404-4b73-a12a-2150008cf86c?tab=instructions" target="_self" rel="nofollow noopener noreferrer"&gt;Docker Hub&lt;/A&gt;&amp;nbsp;running as Container&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Your underlying application containers (instrumented with java agent)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;A Machine Agent with &amp;lt;&lt;STRONG&gt;sim-enabled&amp;gt; and&amp;nbsp;&amp;lt;docker-enabled&amp;gt; &lt;/STRONG&gt;set to true&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;I think that wasn't quite clear from the AppD documentation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you, Mario.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Christian&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 14:13:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/No-Container-Visibility-in-AppDynamics/m-p/737468#M10436</guid>
      <dc:creator>Christian_Brzes</dc:creator>
      <dc:date>2021-04-08T14:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: No Container Visibility in AppDynamics</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/No-Container-Visibility-in-AppDynamics/m-p/737469#M10437</link>
      <description>&lt;P&gt;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/151095"&gt;@Christian.Brzeski&lt;/A&gt;&amp;nbsp;this is helpful information to share with the community! I am sure it will help other people with this question too.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 18:35:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/No-Container-Visibility-in-AppDynamics/m-p/737469#M10437</guid>
      <dc:creator>Jeanie_Kedia1</dc:creator>
      <dc:date>2021-04-12T18:35:03Z</dc:date>
    </item>
  </channel>
</rss>

