Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
on 08-19-2024 10:37 AM
Having the flexibility to use different AccessKey for different applications you auto-instrument with Cluster Agent is essential.
This flexibility was introduced with the latest versions of the Cluster agent.
Follow these steps:
kubectl -n appdynamics create secret generic <secret-name> --from-literal=<custom-Controller-key-name>=<key-value>
kubectl -n appdynamics create secret generic abhi-java-apps --from-literal=controller-key=xxxxx-fb91-4dfc-895a-xxxxx
- namespaceRegex: abhi-java-apps
language: java
matchString: tomcat-app-abhi-non-root
appNameLabel: app
runAsUser: 1001
runAsGroup: 1001
customSecretName: abhi-java-apps
customSecretKey: controller-key
imageInfo:
image: "docker.io/appdynamics/java-agent:latest"
agentMountPath: /opt/appdynamics
imagePullPolicy: Always
[INFO]: 2024-08-19 14:45:09 - deploymenthandler.go:262 - custom secretName is %s and is %s %!(EXTRA string=abhi-java-apps, string=controller-key)
wso2carb@tomcat-app-abhi-non-root-5d558dddf4-rllzc:/usr/local/tomcat/webapps$ env | grep -i Access
APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY=xxxxx-fb91-4dfc-895a-xxxxx
JAVA_TOOL_OPTIONS=-Xmx512m -Dappdynamics.agent.accountAccessKey=xxxxx-fb91-4dfc-895a-xxxxx -Dappdynamics.agent.reuse.nodeName=true -Dappdynamics.socket.collection.bci.enable=true -javaagent:/opt/appdynamics-java/javaagent.jar
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form