<?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: Auto instrument not working in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721921#M2909</link>
    <description>&lt;P&gt;Thank you for your advice, I update configure to this one now... but still got the same log output&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;apiVersion: appdynamics.com/v1alpha1
kind: Clusteragent
metadata:
  name: k8s-cluster-agent
  namespace: appdynamics
spec:
  appName: "SEACMACLUSTER-TH-DEVQA"
  controllerUrl: "https://xxx.saas.appdynamics.com"
  account: "xxx"
  logLevel: DEBUG
  logFileSizeMb: 7
  logFileBackups: 6
  # docker image info
  image: "my-own-repository.org:5000/appdynamics/cluster-agent:latest"
  serviceAccountName: appdynamics-cluster-agent
  nsToMonitor:
    - "appdynamics"
    - "cma-dev"
    - "cma-qa"
  proxyUrl: "http://xx.xx.xx.xx:80"
  proxyUser: "xxx\\svc_localapp_dev"
  #
  # auto-instrumentation config
  #
  instrumentationMethod: Env
  nsToInstrumentRegex: cma-dev|cma-qa
  appNameStrategy: manual
  defaultAppName: SEACMA-TH-NONPROD
  #defaultCustomConfig: "-Dappdynamics.agent.maxMetrics=15000"
  defaultEnv: JAVA_TOOL_OPTIONS
  resourcesToInstrument:
    - Deployment
  instrumentContainer: first
  imageInfo:
    java:
      image: "my-own-repository.org:5000/appdynamics/java-agent:latest"
      agentMountPath: /opt/appdynamics
    dotnetcore:
      image: "docker.io/appdynamics/dotnet-core-agent:latest"
      agentMountPath: /opt/appdynamics
    nodejs:
      image: "docker.io/appdynamics/nodejs-agent:20.8.0-stretch-slimv10"
      agentMountPath: /opt/appdynamics
  instrumentationRules:
    - namespaceRegex: "cma-dev"
      appName: SEACMA-TH-DEV
      env: JAVA_TOOL_OPTIONS
      instrumentContainer: first
      imageInfo:
        image: "my-own-repository.org:5000/appdynamics/java-agent:latest"
        agentMountPath: /opt/appdynamics
    - namespaceRegex: "cma-qa"
      appName: SEACMA-TH-QA
      env: JAVA_TOOL_OPTIONS
      instrumentContainer: first
      imageInfo:
        image: "my-own-repository.org:5000/appdynamics/java-agent:latest"
        agentMountPath: /opt/appdynamics&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Log&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;[DEBUG]: 2021-06-30 01:08:59 - instrumentationconfig.go:628 - rule cma-qa matches Deployment spring-api-productprofile in namespace cma-qa with labels map[app:spring-api-productprofile]
[DEBUG]: 2021-06-30 01:08:59 - instrumentationconfig.go:639 - Found a matching rule {cma-qa  map[] SEACMA-TH-QA  java first   JAVA_TOOL_OPTIONS map[agent-mount-path:/opt/appdynamics image:my-own-repository:5000/appdynamics/java-agent:latest] map[bci-enabled:true port:3892] 0 0   0 false []} for Deployment spring-api-productprofile in namespace cma-qa with labels map[app:spring-api-productprofile]
[DEBUG]: 2021-06-30 01:08:59 - instrumentationconfig.go:249 - Instrumentation state for Deployment spring-api-productprofile in namespace cma-qa with labels map[app:spring-api-productprofile] is false


[DEBUG]: 2021-06-30 01:08:59 - instrumentationconfig.go:628 - rule cma-dev matches Deployment spring-api-productprofile in namespace cma-dev with labels map[app:spring-api-productprofile]
[DEBUG]: 2021-06-30 01:08:59 - instrumentationconfig.go:639 - Found a matching rule {cma-dev  map[] SEACMA-TH-DEV  java first   JAVA_TOOL_OPTIONS map[agent-mount-path:/opt/appdynamics image:my-own-repository.org:5000/appdynamics/java-agent:latest] map[bci-enabled:true port:3892] 0 0   0 false []} for Deployment spring-api-productprofile in namespace cma-dev with labels map[app:spring-api-productprofile]
[DEBUG]: 2021-06-30 01:08:59 - instrumentationconfig.go:249 - Instrumentation state for Deployment spring-api-productprofile in namespace cma-dev with labels map[app:spring-api-productprofile] is false&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What I try...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;check K8s deployment config to make sure that config is applied to the current "k8s-cluster-agent" pod&lt;/LI&gt;&lt;LI&gt;delete and recreate application deployment but no init-container config apply (it should not I think since Instrument still false&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Current dashboard screenshot...&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cluster" 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/36421i3453C1F71F3A3756/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;cluster&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="application" 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/36420i85825BDC126DBD81/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;application&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jun 2021 01:21:52 GMT</pubDate>
    <dc:creator>sattha_puangput</dc:creator>
    <dc:date>2021-06-30T01:21:52Z</dc:date>
    <item>
      <title>Auto instrument not working</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721919#M2907</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Currently, I try to implement cluster-operator and cluster-agent on K8s. the cluster metric shows under the "Server/Cluster" menu correctly. However, I would like to config auto-instrument for Java application but no hope follow the validate guide here is still not much helpful...&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.appdynamics.com/21.5/en/infrastructure-visibility/monitor-kubernetes-with-the-cluster-agent/auto-instrument-applications-with-the-cluster-agent/validate-auto-instrumentation#ValidateAuto-Instrumentation-TroubleshootAuto-InstrumentationWhenNotApplied" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/21.5/en/infrastructure-visibility/monitor-kubernetes-with-the-cluster-agent/auto-instrument-applications-with-the-cluster-agent/validate-auto-instrumentation#ValidateAuto-Instrumentation-TroubleshootAuto-InstrumentationWhenNotApplied&lt;/A&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;apiVersion: appdynamics.com/v1alpha1
kind: Clusteragent
metadata:
  name: k8s-cluster-agent
  namespace: appdynamics
spec:
  appName: "TEST-CLUSTER"
  controllerUrl: "https://xxx.appdynamics.com"
  account: "xxxdev"
  logLevel: DEBUG
  logFileSizeMb: 7
  logFileBackups: 6
  # docker image info
  image: "my.own.repository.org:5000/appdynamics/cluster-agent:latest"
  serviceAccountName: appdynamics-cluster-agent
  nsToMonitor:
    - "appdynamics"
    - "cma-dev"
    - "cma-qa"
  #
  # auto-instrumentation config
  #
  instrumentationMethod: Env
  nsToInstrumentRegex: "xxx-dev|xxx-qa"
  appNameStrategy: label
  defaultAppName: not-specific
  defaultCustomConfig: "-Dappdynamics.agent.maxMetrics=15000"
  defaultEnv: JAVA_TOOL_OPTIONS
  resourcesToInstrument:
    - Deployment
  imageInfo:
    java:
      image: "my.own.repository.org:5000/appdynamics/java-agent:latest"
      agentMountPath: /opt/appdynamics
  instrumentationRules:
    - namespaceRegex: "xxx-dev"
      language: java
      env: JAVA_TOOL_OPTIONS
      appNameLabel: app
      instrumentContainer: first
      imageInfo:
        image: "my.own.repository.org:5000/appdynamics/java-agent:latest"
        agentMountPath: /opt/appdynamics
    - namespaceRegex: "xxx-qa"
      language: java
      env: JAVA_TOOL_OPTIONS
      appNameLabel: app
      instrumentContainer: first
      imageInfo:
        image: "my.own.repository.org:5000/appdynamics/java-agent:latest"
        agentMountPath: /opt/appdynamics&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But I got this....&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;[DEBUG]: 2021-06-28 16:12:36 - instrumentationconfig.go:628 - rule xxx-qa matches Deployment spring-api-productprofile in namespace xxx-qa with labels map[app:spring-api-productprofile]
[DEBUG]: 2021-06-28 16:12:36 - instrumentationconfig.go:639 - Found a matching rule {xxx-qa  map[]   java first  -Dappdynamics.agent.maxMetrics=15000 JAVA_TOOL_OPTIONS map[agent-mount-path:/opt/appdynamics image:my-own-repository.org:5000/appdynamics/java-agent:latest] map[bci-enabled:true port:3892] 0 0 app  0 false []} for Deployment spring-api-productprofile in namespace xxx-qa with labels map[app:spring-api-productprofile]
[DEBUG]: 2021-06-28 16:12:36 - instrumentationconfig.go:249 - Instrumentation state for Deployment spring-api-productprofile in namespace xxx-qa with labels map[app:spring-api-productprofile] is false
[DEBUG]: 2021-06-28 16:12:36 - instrumentationconfig.go:628 - rule xxx-dev matches Deployment spring-api-deliveries in namespace xxx-dev with labels map[app:spring-api-deliveries]
[DEBUG]: 2021-06-28 16:12:36 - instrumentationconfig.go:639 - Found a matching rule {xxx-dev  map[]   java first  -Dappdynamics.agent.maxMetrics=15000 JAVA_TOOL_OPTIONS map[agent-mount-path:/opt/appdynamics image:my-own-repository.org:5000/appdynamics/java-agent:latest] map[bci-enabled:true port:3892] 0 0 app  0 false []} for Deployment spring-api-deliveries in namespace xxx-dev with labels map[app:spring-api-deliveries]
[DEBUG]: 2021-06-28 16:12:36 - instrumentationconfig.go:249 - Instrumentation state for Deployment spring-api-deliveries in namespace xxx-dev with labels map[app:spring-api-deliveries] is false&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please advice&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 16:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721919#M2907</guid>
      <dc:creator>sattha_puangput</dc:creator>
      <dc:date>2021-06-28T16:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Auto instrument not working</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721920#M2908</link>
      <description>&lt;P&gt;Hi Sattha&lt;/P&gt;

&lt;P&gt;You have set the&amp;nbsp;appNameStrategy : label&lt;/P&gt;
&lt;P&gt;And in the instrumentation rules, you state that it should use the below label of the Java pods to name the Application.&lt;/P&gt;

&lt;P&gt;Do you have a label in your java app's deployment spec that is named "app"? As it will look for that label to set the Application Name. If it's empty it wont register. Your logs show that the instrumentation rule is matching the pod so the rest seem to be correct.&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;appNameLabel: app&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would suggest to set the following, to just validate testing, before switching back to using labels to set the AppD Application Name&lt;/P&gt;


&lt;P&gt;appNameStrategy: manual&lt;/P&gt;
&lt;P&gt;Change&amp;nbsp;&lt;/P&gt;
&lt;P&gt;appNameLabel: app to&amp;nbsp;appName: XXX_DEV&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;appName: XXX_QA&lt;/P&gt;

&lt;P&gt;Then redeploy and let us know&lt;/P&gt;

&lt;P&gt;Ciao&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 13:05:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721920#M2908</guid>
      <dc:creator>Morelz</dc:creator>
      <dc:date>2021-06-29T13:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Auto instrument not working</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721921#M2909</link>
      <description>&lt;P&gt;Thank you for your advice, I update configure to this one now... but still got the same log output&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;apiVersion: appdynamics.com/v1alpha1
kind: Clusteragent
metadata:
  name: k8s-cluster-agent
  namespace: appdynamics
spec:
  appName: "SEACMACLUSTER-TH-DEVQA"
  controllerUrl: "https://xxx.saas.appdynamics.com"
  account: "xxx"
  logLevel: DEBUG
  logFileSizeMb: 7
  logFileBackups: 6
  # docker image info
  image: "my-own-repository.org:5000/appdynamics/cluster-agent:latest"
  serviceAccountName: appdynamics-cluster-agent
  nsToMonitor:
    - "appdynamics"
    - "cma-dev"
    - "cma-qa"
  proxyUrl: "http://xx.xx.xx.xx:80"
  proxyUser: "xxx\\svc_localapp_dev"
  #
  # auto-instrumentation config
  #
  instrumentationMethod: Env
  nsToInstrumentRegex: cma-dev|cma-qa
  appNameStrategy: manual
  defaultAppName: SEACMA-TH-NONPROD
  #defaultCustomConfig: "-Dappdynamics.agent.maxMetrics=15000"
  defaultEnv: JAVA_TOOL_OPTIONS
  resourcesToInstrument:
    - Deployment
  instrumentContainer: first
  imageInfo:
    java:
      image: "my-own-repository.org:5000/appdynamics/java-agent:latest"
      agentMountPath: /opt/appdynamics
    dotnetcore:
      image: "docker.io/appdynamics/dotnet-core-agent:latest"
      agentMountPath: /opt/appdynamics
    nodejs:
      image: "docker.io/appdynamics/nodejs-agent:20.8.0-stretch-slimv10"
      agentMountPath: /opt/appdynamics
  instrumentationRules:
    - namespaceRegex: "cma-dev"
      appName: SEACMA-TH-DEV
      env: JAVA_TOOL_OPTIONS
      instrumentContainer: first
      imageInfo:
        image: "my-own-repository.org:5000/appdynamics/java-agent:latest"
        agentMountPath: /opt/appdynamics
    - namespaceRegex: "cma-qa"
      appName: SEACMA-TH-QA
      env: JAVA_TOOL_OPTIONS
      instrumentContainer: first
      imageInfo:
        image: "my-own-repository.org:5000/appdynamics/java-agent:latest"
        agentMountPath: /opt/appdynamics&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Log&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;[DEBUG]: 2021-06-30 01:08:59 - instrumentationconfig.go:628 - rule cma-qa matches Deployment spring-api-productprofile in namespace cma-qa with labels map[app:spring-api-productprofile]
[DEBUG]: 2021-06-30 01:08:59 - instrumentationconfig.go:639 - Found a matching rule {cma-qa  map[] SEACMA-TH-QA  java first   JAVA_TOOL_OPTIONS map[agent-mount-path:/opt/appdynamics image:my-own-repository:5000/appdynamics/java-agent:latest] map[bci-enabled:true port:3892] 0 0   0 false []} for Deployment spring-api-productprofile in namespace cma-qa with labels map[app:spring-api-productprofile]
[DEBUG]: 2021-06-30 01:08:59 - instrumentationconfig.go:249 - Instrumentation state for Deployment spring-api-productprofile in namespace cma-qa with labels map[app:spring-api-productprofile] is false


[DEBUG]: 2021-06-30 01:08:59 - instrumentationconfig.go:628 - rule cma-dev matches Deployment spring-api-productprofile in namespace cma-dev with labels map[app:spring-api-productprofile]
[DEBUG]: 2021-06-30 01:08:59 - instrumentationconfig.go:639 - Found a matching rule {cma-dev  map[] SEACMA-TH-DEV  java first   JAVA_TOOL_OPTIONS map[agent-mount-path:/opt/appdynamics image:my-own-repository.org:5000/appdynamics/java-agent:latest] map[bci-enabled:true port:3892] 0 0   0 false []} for Deployment spring-api-productprofile in namespace cma-dev with labels map[app:spring-api-productprofile]
[DEBUG]: 2021-06-30 01:08:59 - instrumentationconfig.go:249 - Instrumentation state for Deployment spring-api-productprofile in namespace cma-dev with labels map[app:spring-api-productprofile] is false&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What I try...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;check K8s deployment config to make sure that config is applied to the current "k8s-cluster-agent" pod&lt;/LI&gt;&lt;LI&gt;delete and recreate application deployment but no init-container config apply (it should not I think since Instrument still false&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Current dashboard screenshot...&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cluster" 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/36421i3453C1F71F3A3756/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;cluster&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="application" 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/36420i85825BDC126DBD81/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;application&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 01:21:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721921#M2909</guid>
      <dc:creator>sattha_puangput</dc:creator>
      <dc:date>2021-06-30T01:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Auto instrument not working</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721922#M2910</link>
      <description>&lt;P&gt;Thanks Sattha&lt;/P&gt;

&lt;P&gt;Could you remove all instances of the following from the cluster agent yaml&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;instrumentContainer: first&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and add the following to each of the 2 instrumentation rules&lt;/P&gt;
&lt;P&gt;containerMatchString: .*&lt;/P&gt;

&lt;P&gt;The redeploy, and check if it instruments the pods now&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 06:58:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721922#M2910</guid>
      <dc:creator>Morelz</dc:creator>
      <dc:date>2021-06-30T06:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Auto instrument not working</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721923#M2911</link>
      <description>&lt;P&gt;I try to add the following config but it does not work...&lt;/P&gt;&lt;P&gt;instrumentContainer: select&lt;BR /&gt;containerMatchString: .*&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;apiVersion: appdynamics.com/v1alpha1
kind: Clusteragent
metadata:
  name: k8s-cluster-agent
  namespace: appdynamics
spec:
  appName: "SEACMACLUSTER-TH-DEVQA"
  controllerUrl: "https://xxxxxdev.saas.appdynamics.com"
  account: "xxxxxdev"
  logLevel: DEBUG
  logFileSizeMb: 7
  logFileBackups: 6
  # docker image info
  image: "my-own-repository.org:5000/appdynamics/cluster-agent:latest"
  serviceAccountName: appdynamics-cluster-agent
  ### Uncomment the following two lines if you need pull secrets
  #imagePullSecrets:
  #  name: "&amp;lt;your-docker-pull-secret-name&amp;gt;"
  nsToMonitor:
    - "appdynamics"
    - "cma-dev"
    - "cma-qa"
  proxyUrl: "http://172.30.60.46:80"
  proxyUser: "Th-xxxxx\\svc_localapp_dev"
  #
  # auto-instrumentation config
  #
  instrumentationMethod: Env
  nsToInstrumentRegex: cma-dev|cma-qa
  appNameStrategy: manual
  defaultAppName: SEACMA-TH-NONPROD
  instrumentContainer: select
  #defaultCustomConfig: "-Dappdynamics.agent.maxMetrics=15000"
  defaultEnv: JAVA_TOOL_OPTIONS
  resourcesToInstrument:
    - Deployment
  imageInfo:
    java:
      image: "my-own-repository.org:5000/appdynamics/java-agent:latest"
      agentMountPath: /opt/appdynamics
    dotnetcore:
      image: "docker.io/appdynamics/dotnet-core-agent:latest"
      agentMountPath: /opt/appdynamics
    nodejs:
      image: "docker.io/appdynamics/nodejs-agent:20.8.0-stretch-slimv10"
      agentMountPath: /opt/appdynamics
  instrumentationRules:
    - namespaceRegex: "cma-dev"
      appName: SEACMA-TH-DEV
      env: JAVA_TOOL_OPTIONS
      instrumentContainer: select
      containerMatchString: .*
      imageInfo:
        image: "my-own-repository.org:5000/appdynamics/java-agent:latest"
        agentMountPath: /opt/appdynamics
    - namespaceRegex: "cma-qa"
      appName: SEACMA-TH-QA
      env: JAVA_TOOL_OPTIONS
      instrumentContainer: select
      containerMatchString: .*
      imageInfo:
        image: "my-own-repository.org:5000/appdynamics/java-agent:latest"
        agentMountPath: /opt/appdynamics&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; Still same error&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;[DEBUG]: 2021-06-30 16:12:11 - instrumentationconfig.go:628 - rule cma-qa matches Deployment spring-api-productprofile in namespace cma-qa with labels map[app:spring-api-productprofile]
[DEBUG]: 2021-06-30 16:12:11 - instrumentationconfig.go:639 - Found a matching rule {cma-qa  map[] SEACMA-TH-QA  java select .*  JAVA_TOOL_OPTIONS map[agent-mount-path:/opt/appdynamics image:pvnexusho001th.dmz.th-tesco.org:5000/appdynamics/java-agent:latest] map[bci-enabled:true port:3892] 0 0   0 false []} for Deployment spring-api-productprofile in namespace cma-qa with labels map[app:spring-api-productprofile]
[DEBUG]: 2021-06-30 16:12:11 - instrumentationconfig.go:249 - Instrumentation state for Deployment spring-api-productprofile in namespace cma-qa with labels map[app:spring-api-productprofile] is false&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What I try&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Update config according to your suggestion&lt;/LI&gt;&lt;LI&gt;Delete cluster-operator&amp;nbsp; K8S deployment&lt;/LI&gt;&lt;LI&gt;Delete cluster-agent K8S deployment&lt;/LI&gt;&lt;LI&gt;recreate both cluster-operator and cluster-agent&lt;/LI&gt;&lt;LI&gt;check deployment configuration change to what we need&lt;/LI&gt;&lt;LI&gt;delete application deployment and recreate it --- not thing happen no init-container&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 30 Jun 2021 16:22:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721923#M2911</guid>
      <dc:creator>sattha_puangput</dc:creator>
      <dc:date>2021-06-30T16:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Auto instrument not working</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721924#M2912</link>
      <description>&lt;P&gt;Hi Sattha&lt;/P&gt;

&lt;P&gt;Can you try the below YAML Config&lt;/P&gt;


&lt;PRE class="lia-code-sample language-java"&gt;&lt;CODE&gt;apiVersion: appdynamics.com/v1alpha1
kind: Clusteragent
metadata:
  name: k8s-cluster-agent
  namespace: appdynamics
spec:
  appName: "SEACMACLUSTER-TH-DEVQA"
  controllerUrl: "https://xxxxxdev.saas.appdynamics.com"
  account: "xxxxxdev"
  image: "my-own-repository.org:5000/appdynamics/cluster-agent:latest"
  logLevel: Debug
  logFileSizeMb: 10
  logFileBackups: 5
  stdoutLogging: "true"
  serviceAccountName: appdynamics-cluster-agent
  nsToMonitorRegex: appdynamics|cma-dev|cma-qa
  proxyUrl: "http://172.30.60.46:80"
  proxyUser: "Th-xxxxx\\svc_localapp_dev"
  #
  # auto-instrumentation config
  #
  instrumentationMethod: Env
  nsToInstrumentRegex: cma-dev|cma-qa
  appNameStrategy: manual
  defaultAppName: SEACMA-TH-NONPROD
  defaultEnv: JAVA_TOOL_OPTIONS
  instrumentationRules:
    - namespaceRegex: cma-dev
      language: java
      appName: SEACMA-TH-DEV
      containerMatchString: .*
      imageInfo:
        image: "my-own-repository.org:5000/appdynamics/java-agent:latest"
        agentMountPath: /opt/appdynamics&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Jul 2021 07:40:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721924#M2912</guid>
      <dc:creator>Morelz</dc:creator>
      <dc:date>2021-07-01T07:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Auto instrument not working</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721925#M2913</link>
      <description>&lt;P&gt;I try your .yaml file but when creating `cluster-agent.yaml` there is the following error&lt;/P&gt;&lt;PRE&gt;error: error validating "appdynamics/cluster-agent-test.yaml": error validating data: ValidationError(Clusteragent.spec): unknown field "nsToMonitorRegex" in com.appdynamics.v1alpha1.Clusteragent.spec; if you choose to ignore these errors, turn validation off with --validate=false&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Jul 2021 14:40:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721925#M2913</guid>
      <dc:creator>sattha_puangput</dc:creator>
      <dc:date>2021-07-01T14:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Auto instrument not working</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721926#M2914</link>
      <description>&lt;P&gt;Thanks Sattha&lt;/P&gt;

&lt;P&gt;Can you just confirm a couple of things&lt;/P&gt;

&lt;P&gt;1. Which version of K8S are you running?&lt;/P&gt;
&lt;P&gt;2. What version of the Cluster Agent Operator are you running? If running version 1.14 or less you should have deployed the Operator with the below YAML File&lt;/P&gt;
&lt;P&gt;cluster-agent-operator-1.14-or-less.yaml&lt;/P&gt;

&lt;P&gt;You can try the below YAML and advise&lt;/P&gt;
&lt;PRE class="lia-code-sample language-java"&gt;&lt;CODE&gt;apiVersion: appdynamics.com/v1alpha1
kind: Clusteragent
metadata:
  name: k8s-cluster-agent
  namespace: appdynamics
spec:
  appName: "SEACMACLUSTER-TH-DEVQA"
  controllerUrl: "https://xxxxxdev.saas.appdynamics.com"
  account: "xxxxxdev"
  image: "my-own-repository.org:5000/appdynamics/cluster-agent:latest"
  logLevel: Debug
  logFileSizeMb: 10
  logFileBackups: 5
  stdoutLogging: "true"
  serviceAccountName: appdynamics-cluster-agent
  nsToMonitor:
    - "appdynamics"
    - "cma-dev"
    - "cma-qa"
  proxyUrl: "http://172.30.60.46:80"
  proxyUser: "Th-xxxxx\\svc_localapp_dev"
  #
  # auto-instrumentation config
  #
  instrumentationMethod: Env
  nsToInstrument:
    - "appdynamics"
    - "cma-dev"
    - "cma-qa"
  appNameStrategy: manual
  defaultAppName: SEACMA-TH-NONPROD
  defaultEnv: JAVA_TOOL_OPTIONS
  instrumentationRules:
    - namespaceRegex: cma-dev
      language: java
      appName: SEACMA-TH-DEV
      containerMatchString: .*
      imageInfo:
        image: "my-own-repository.org:5000/appdynamics/java-agent:latest"
        agentMountPath: /opt/appdynamics&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Jul 2021 14:53:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721926#M2914</guid>
      <dc:creator>Morelz</dc:creator>
      <dc:date>2021-07-01T14:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Auto instrument not working</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721927#M2915</link>
      <description>&lt;P&gt;did it work&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/153245"&gt;@sattha.puangput&lt;/A&gt;&amp;nbsp;? I am also facing the same issue with my containerized app.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 19:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Auto-instrument-not-working/m-p/721927#M2915</guid>
      <dc:creator>Pooja_Patel</dc:creator>
      <dc:date>2023-03-06T19:57:43Z</dc:date>
    </item>
  </channel>
</rss>

