Hi All, 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... 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 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 But I got this.... [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 Please advice
... View more