Configuration Structure for Auto-Instrumentation
The structure of the auto-instrumentation configuration is based on a set of default properties, which you can override by using properties defined in one or more instrumentationRules
- 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 # ...