<?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 Installing Machine Agent in Kubernetes Environment in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Installing-Machine-Agent-in-Kubernetes-Environment/m-p/725518#M4772</link>
    <description>&lt;P&gt;I have a spring boot application, deployed in AKS. I use Appynamics docker image to inject the agent into JVM via init-container. My company does not have a cluster license, and I'm unsure if or when that would be available. But the Machine Agent and Server Visibility licenses are there. So to capture server stats, I'm trying to configure the machine agent using the sidecar container approach. Below is the snippet of my deployment file&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;apiVersion: apps/v1
kind: Deployment
metadata:
  ...
spec:
  replicas: 2
  template:
    spec:
      initContainers:
        - name: appd-agent
          command:
            - cp
            - -ra
            - /opt/appdynamics/.
            - /opt/temp
          image: docker.io/appdynamics/java-agent:22.12.0
          imagePullPolicy: IfNotPresent
          resources:
            limits:
              cpu: 200m
              memory: 100M
            requests:
              cpu: 100m
              memory: 50M
          volumeMounts:
            - mountPath: /opt/temp
              name: appd-agent-repo
      containers:
        - name: appd-analytics-agent
          envFrom:
            - configMapRef:
                name: controller-info
          env:
            - name: APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY
              valueFrom:
                secretKeyRef:
                  name: my-secrets
                  key: APP_D_AGENT_SECRET
          image: docker.io/appdynamics/machine-agent-analytics:23.1.0
          imagePullPolicy: IfNotPresent
          ports:
            - containerPort: 9090
              protocol: TCP
          readinessProbe:
            exec:
              command:
                - touch
                - /tmp/healthy
          livenessProbe:
            exec:
              command:
                - touch
                - /tmp/healthy
          resources:
            limits:
              cpu: 200m
              memory: 900M
            requests:
              cpu: 100m
              memory: 600M
        - name: my-non-prod-app
          image: xxx.xxx
          imagePullPolicy: Always
          resources:
            requests:
              memory: "2Gi"
              cpu: "1"
            limits:
              memory: "4Gi"
              cpu: "2"
          env:
            - name: JDK_JAVA_OPTIONS
              value: "-javaagent:/opt/temp/javaagent.jar -Djava.net.useSystemProxies=true"
            - name: APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY
              valueFrom:
                secretKeyRef:
                  name: my-secrets
                  key: APP_D_AGENT_SECRET
          envFrom:
            - configMapRef:
                name: my-configmap
          ports:
            - containerPort: 8080
          readinessProbe:
            ...
          livenessProbe:
            ...
          volumeMounts:
            - mountPath: /opt/temp
              name: appd-agent-repo
      volumes:
        - name: appd-agent-repo
          emptyDir: { }

---
apiVersion: v1
kind: ConfigMap
data:
  APPDYNAMICS_AGENT_ACCOUNT_NAME: "my-non-prod-account"
  APPDYNAMICS_AGENT_GLOBAL_ACCOUNT_NAME: "my-non-prod-account_#####"
  APPDYNAMICS_AGENT_APPLICATION_NAME: "MyApp Dev"
  APPDYNAMICS_MACHINE_HIERARCHY_PATH: "MyApp"
  APPDYNAMICS_CONTROLLER_HOST_NAME: "my-non-prod-account.saas.appdynamics.com"
  APPDYNAMICS_CONTROLLER_PORT: "443"
  APPDYNAMICS_CONTROLLER_SSL_ENABLED: "true"
  APPDYNAMICS_SIM_ENABLED: "true"
  EVENT_ENDPOINT: "https://analytics.api.appdynamics.com:443"
metadata:
  name: controller-info&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I can see that the machine-agent container gets registered successfully and I can see the machines under Servers.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;But here I only see the machine agent process, and no other processes&lt;/LI&gt;&lt;LI&gt;Is it capturing the details of its own container only or for the whole pod?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And If&amp;nbsp; I go to the Tiers &amp;amp; Nodes of my application:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;There are no details under Servers there.&lt;/LI&gt;&lt;LI&gt;Also, the machine agent status is "Agent not installed" under the Agents tab for each node.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So it looks like the machine agent is not able to detect the nodes of my application or not able to attach to them.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2023 06:55:02 GMT</pubDate>
    <dc:creator>Sandeep_Poonia</dc:creator>
    <dc:date>2023-03-20T06:55:02Z</dc:date>
    <item>
      <title>Installing Machine Agent in Kubernetes Environment</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Installing-Machine-Agent-in-Kubernetes-Environment/m-p/725518#M4772</link>
      <description>&lt;P&gt;I have a spring boot application, deployed in AKS. I use Appynamics docker image to inject the agent into JVM via init-container. My company does not have a cluster license, and I'm unsure if or when that would be available. But the Machine Agent and Server Visibility licenses are there. So to capture server stats, I'm trying to configure the machine agent using the sidecar container approach. Below is the snippet of my deployment file&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;apiVersion: apps/v1
kind: Deployment
metadata:
  ...
spec:
  replicas: 2
  template:
    spec:
      initContainers:
        - name: appd-agent
          command:
            - cp
            - -ra
            - /opt/appdynamics/.
            - /opt/temp
          image: docker.io/appdynamics/java-agent:22.12.0
          imagePullPolicy: IfNotPresent
          resources:
            limits:
              cpu: 200m
              memory: 100M
            requests:
              cpu: 100m
              memory: 50M
          volumeMounts:
            - mountPath: /opt/temp
              name: appd-agent-repo
      containers:
        - name: appd-analytics-agent
          envFrom:
            - configMapRef:
                name: controller-info
          env:
            - name: APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY
              valueFrom:
                secretKeyRef:
                  name: my-secrets
                  key: APP_D_AGENT_SECRET
          image: docker.io/appdynamics/machine-agent-analytics:23.1.0
          imagePullPolicy: IfNotPresent
          ports:
            - containerPort: 9090
              protocol: TCP
          readinessProbe:
            exec:
              command:
                - touch
                - /tmp/healthy
          livenessProbe:
            exec:
              command:
                - touch
                - /tmp/healthy
          resources:
            limits:
              cpu: 200m
              memory: 900M
            requests:
              cpu: 100m
              memory: 600M
        - name: my-non-prod-app
          image: xxx.xxx
          imagePullPolicy: Always
          resources:
            requests:
              memory: "2Gi"
              cpu: "1"
            limits:
              memory: "4Gi"
              cpu: "2"
          env:
            - name: JDK_JAVA_OPTIONS
              value: "-javaagent:/opt/temp/javaagent.jar -Djava.net.useSystemProxies=true"
            - name: APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY
              valueFrom:
                secretKeyRef:
                  name: my-secrets
                  key: APP_D_AGENT_SECRET
          envFrom:
            - configMapRef:
                name: my-configmap
          ports:
            - containerPort: 8080
          readinessProbe:
            ...
          livenessProbe:
            ...
          volumeMounts:
            - mountPath: /opt/temp
              name: appd-agent-repo
      volumes:
        - name: appd-agent-repo
          emptyDir: { }

---
apiVersion: v1
kind: ConfigMap
data:
  APPDYNAMICS_AGENT_ACCOUNT_NAME: "my-non-prod-account"
  APPDYNAMICS_AGENT_GLOBAL_ACCOUNT_NAME: "my-non-prod-account_#####"
  APPDYNAMICS_AGENT_APPLICATION_NAME: "MyApp Dev"
  APPDYNAMICS_MACHINE_HIERARCHY_PATH: "MyApp"
  APPDYNAMICS_CONTROLLER_HOST_NAME: "my-non-prod-account.saas.appdynamics.com"
  APPDYNAMICS_CONTROLLER_PORT: "443"
  APPDYNAMICS_CONTROLLER_SSL_ENABLED: "true"
  APPDYNAMICS_SIM_ENABLED: "true"
  EVENT_ENDPOINT: "https://analytics.api.appdynamics.com:443"
metadata:
  name: controller-info&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I can see that the machine-agent container gets registered successfully and I can see the machines under Servers.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;But here I only see the machine agent process, and no other processes&lt;/LI&gt;&lt;LI&gt;Is it capturing the details of its own container only or for the whole pod?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And If&amp;nbsp; I go to the Tiers &amp;amp; Nodes of my application:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;There are no details under Servers there.&lt;/LI&gt;&lt;LI&gt;Also, the machine agent status is "Agent not installed" under the Agents tab for each node.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So it looks like the machine agent is not able to detect the nodes of my application or not able to attach to them.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 06:55:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Installing-Machine-Agent-in-Kubernetes-Environment/m-p/725518#M4772</guid>
      <dc:creator>Sandeep_Poonia</dc:creator>
      <dc:date>2023-03-20T06:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Machine Agent in Kubernetes Environment</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Installing-Machine-Agent-in-Kubernetes-Environment/m-p/725519#M4773</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/161217"&gt;@Sandeep.Poonia&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for asking your question on Community, you may also want to reach out to AppD Support.&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/Knowledge-Base/How-do-I-submit-a-Support-ticket-An-FAQ/m-p/28959#U28959" class="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;How do I submit a Support ticket? An FAQ&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 16:15:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Installing-Machine-Agent-in-Kubernetes-Environment/m-p/725519#M4773</guid>
      <dc:creator>iamryan</dc:creator>
      <dc:date>2023-03-21T16:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Machine Agent in Kubernetes Environment</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Installing-Machine-Agent-in-Kubernetes-Environment/m-p/725520#M4774</link>
      <description>&lt;P&gt;Hi Sandeep,&lt;/P&gt;
&lt;P&gt;This is a bit of a 2 part-er...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Firstly, If you have SIM licenses available, you're golden! As they also apply as the necessary license needed for the cluster agent. With this clarification, I'd say skip this work-around approach you're doing and just install the full cluster agent(s).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the below docs:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.appdynamics.com/appd/22.x/22.12/en/infrastructure-visibility/monitor-kubernetes-with-the-cluster-agent/install-the-cluster-agent" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/appd/22.x/22.3/en/infrastructure-visibility/monitor-kubernetes-with-the-cluster-agent/install-the-cluster-agent&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;After that, if you are not seeing things in the correct places in the controller. Ryan's instruction to submit a support ticket would be the next step.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Christopher&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 20:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Installing-Machine-Agent-in-Kubernetes-Environment/m-p/725520#M4774</guid>
      <dc:creator>Christopher_Bo1</dc:creator>
      <dc:date>2023-03-23T20:03:49Z</dc:date>
    </item>
  </channel>
</rss>

