Skip to content

Commit a32ec67

Browse files
author
Wayne Brown
authored
Update how-to-appdynamics-java-agent-monitor.md
The environment variables specified when configuring the AppDynamics Java agent work only when apps only have a single instance deployed. The updated variables and Azure portal screenshot will work when multiple instances are deployed.
1 parent 2314e47 commit a32ec67

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

articles/spring-cloud/how-to-appdynamics-java-agent-monitor.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ To activate an application through the Azure CLI, use the following steps.
7171
--env APPDYNAMICS_AGENT_APPLICATION_NAME=<your-app-name> \
7272
APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY=<your-agent-access-key> \
7373
APPDYNAMICS_AGENT_ACCOUNT_NAME=<your-agent-account-name> \
74-
APPDYNAMICS_AGENT_NODE_NAME=<your-agent-node-name> \
74+
APPDYNAMICS_JAVA_AGENT_REUSE_NODE_NAME=true \
75+
APPDYNAMICS_JAVA_AGENT_REUSE_NODE_NAME_PREFIX=<your-agent-node-name> \
7576
APPDYNAMICS_AGENT_TIER_NAME=<your-agent-tier-name> \
7677
APPDYNAMICS_CONTROLLER_HOST_NAME=<your-AppDynamics-controller-host-name> \
7778
APPDYNAMICS_CONTROLLER_SSL_ENABLED=true \
@@ -96,7 +97,7 @@ To activate an application through the Azure portal, use the following steps.
9697
9798
1. Select **Configuration** in the left navigation pane to add, update, or delete the environment variables of the application.
9899
99-
:::image type="content" source="media/how-to-appdynamics-java-agent-monitor/azure-spring-cloud-app-configuration-env.png" alt-text="Azure portal screenshot showing the 'Environment variables' section of the app's Configuration page " lightbox="media/how-to-appdynamics-java-agent-monitor/azure-spring-cloud-app-configuration-env.png":::
100+
:::image type="content" source="https://user-images.githubusercontent.com/86866/156226614-93603786-7055-42bf-9da6-30c4ade8632c.png" alt-text="Azure portal screenshot showing the 'Environment variables' section of the app's Configuration page " lightbox="https://user-images.githubusercontent.com/86866/156226614-93603786-7055-42bf-9da6-30c4ade8632c.png":::
100101
101102
1. Select **General settings** to add, update, or delete the JVM options of the application.
102103
@@ -119,7 +120,8 @@ resource "azurerm_spring_cloud_java_deployment" "example" {
119120
"APPDYNAMICS_AGENT_APPLICATION_NAME" : "<your-app-name>",
120121
"APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY" : "<your-agent-access-key>",
121122
"APPDYNAMICS_AGENT_ACCOUNT_NAME" : "<your-agent-account-name>",
122-
"APPDYNAMICS_AGENT_NODE_NAME" : "<your-agent-node-name>",
123+
"APPDYNAMICS_JAVA_AGENT_REUSE_NODE_NAME" : "true",
124+
"APPDYNAMICS_JAVA_AGENT_REUSE_NODE_NAME_PREFIX" : "<your-agent-node-name>",
123125
"APPDYNAMICS_AGENT_TIER_NAME" : "<your-agent-tier-name>",
124126
"APPDYNAMICS_CONTROLLER_HOST_NAME" : "<your-AppDynamics-controller-host-name>",
125127
"APPDYNAMICS_CONTROLLER_SSL_ENABLED" : "true",
@@ -138,7 +140,8 @@ To configure the environment variables in an ARM template, add the following cod
138140
"APPDYNAMICS_AGENT_APPLICATION_NAME" : "<your-app-name>",
139141
"APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY" : "<your-agent-access-key>",
140142
"APPDYNAMICS_AGENT_ACCOUNT_NAME" : "<your-agent-account-name>",
141-
"APPDYNAMICS_AGENT_NODE_NAME" : "<your-agent-node-name>",
143+
"APPDYNAMICS_JAVA_AGENT_REUSE_NODE_NAME" : "true",
144+
"APPDYNAMICS_JAVA_AGENT_REUSE_NODE_NAME_PREFIX" : "<your-agent-node-name>",
142145
"APPDYNAMICS_AGENT_TIER_NAME" : "<your-agent-tier-name>",
143146
"APPDYNAMICS_CONTROLLER_HOST_NAME" : "<your-AppDynamics-controller-host-name>",
144147
"APPDYNAMICS_CONTROLLER_SSL_ENABLED" : "true",

0 commit comments

Comments
 (0)