Configuration Structure for Auto-Instrumentation
instrumentationConfig.instrumentationVersion
parameter to v2
in the cluster-agent.yaml
(CLI) or the values.yaml
(Helm) file.- cluster-agent.yaml
apiVersion: cluster.appdynamics.com/v1alpha1 kind: Clusteragent metadata: name: k8s-cluster-agent namespace: appdynamics spec: # cluster agent properties # ... # required to enable auto-instrumentation instrumentationMethod: Env # default auto-instrumentation properties # may be overridden in an instrumentationRule nsToInstrumentRegex: dev|stage|prod enableInstallationReport: false image: "docker.io/appdynamics/java-agent:21.7.0" # ... # one or more instrumentationRules instrumentationRules: - nsToInstrumentRegex: dev imageInfo: image: "docker.io/appdynamics/java-agent:21.3.1" agentMountPath: /opt/appdynamics imagePullPolicy: Always # ... - nsToInstrumentRegex: stage imageInfo: image: "docker.io/appdynamics/java-agent:21.5.0" agentMountPath: /opt/appdynamics imagePullPolicy: Always # ...
- values.yaml
deploymentMode: MASTER # cluster agent properties # ... clusterAgent: nsToMonitorRegex: .* # ... # Instrumentation config instrumentationConfig: enabled: true # required to enable auto-instrumentation instrumentationMethod: Env # default auto-instrumentation properties # may be overridden in an instrumentationRule nsToInstrumentRegex: dev|stage|prod image: "docker.io/appdynamics/java-agent:21.7.0" # ... # one or more instrumentationRules instrumentationRules: - nsToInstrumentRegex: dev imageInfo: image: "docker.io/appdynamics/java-agent:21.3.1" agentMountPath: /opt/appdynamics imagePullPolicy: Always # ... - nsToInstrumentRegex: stage imageInfo: image: "docker.io/appdynamics/java-agent:21.5.0" agentMountPath: /opt/appdynamics imagePullPolicy: Always # ...