Skip to content

Commit bed6314

Browse files
committed
added APM section
1 parent 9936538 commit bed6314

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

articles/app-service/configure-language-java.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,36 @@ First, follow the instructions for [granting your app access to Key Vault](app-s
179179
180180
To inject these secrets in your Spring or Tomcat configuration file, use environment variable injection syntax (`${MY_ENV_VAR}`). For Spring configuration files, please see this documentation on [externalized configurations](https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html).
181181
182+
183+
## Configure APM platforms
184+
185+
This section shows how to connect Java applications deployed on Azure App Service on Linux with the NewRelic and AppDynamics application performance monitoring (APM) platforms.
186+
187+
### Configure New Relic
188+
189+
1. Create a NewRelic account at [NewRelic.com](https://newrelic.com/signup)
190+
2. Download the Java agent from NewRelic, it will have a file name similar to *newrelic-java-x.x.x.zip*.
191+
3. Copy your license key, you'll need it to configure the agent later.
192+
4. [SSH into your App Service instance](app-service-linux-ssh-support.md) and create a new directory */home/site/wwwroot/apm*.
193+
5. Upload the unpacked NewRelic Java agent files into a directory under */home/site/wwwroot/apm*. The files for your agent should be in */home/site/wwwroot/apm/newrelic*.
194+
6. Modify the YAML file at */home/site/wwwroot/apm/newrelic/newrelic.yml* and replace the placeholder license value with your own license key.
195+
7. In the Azure portal, browse to your application in App Service and create a new Application Setting.
196+
- If your app is using **Java SE**, create an environment variable named `JAVA_OPTS` with the value `-javaagent:/home/site/wwwroot/apm/newrelic/newrelic.jar`.
197+
- If you're using **Tomcat**, create an environment variable named `CATALINA_OPTS` with the value `-javaagent:/home/site/wwwroot/apm/newrelic/newrelic.jar`.
198+
- If you're using **WildFly**, see the New Relic documentation [here](https://docs.newrelic.com/docs/agents/java-agent/additional-installation/wildfly-version-11-installation-java) for guidance about installing the Java agent and JBoss configuration.
199+
- If you already have an environment variable for `JAVA_OPTS` or `CATALINA_OPTS`, append the `javaagent` option to the end of the current value.
200+
201+
### Configure AppDynamics
202+
203+
1. Create an AppDynamics account at [AppDynamics.com](https://www.appdynamics.com/community/register/)
204+
2. Download the Java agent from the AppDynamics website, the file name will be similar to *AppServerAgent-x.x.x.xxxxx.zip*
205+
3. [SSH into your App Service instance](app-service-linux-ssh-support.md) and create a new directory */home/site/wwwroot/apm*.
206+
4. Upload the Java agent files into a directory under */home/site/wwwroot/apm*. The files for your agent should be in */home/site/wwwroot/apm/appdynamics*.
207+
5. In the Azure portal, browse to your application in App Service and create a new Application Setting.
208+
- If you're using **Java SE**, create an environment variable named `JAVA_OPTS` with the value `-javaagent:/home/site/wwwroot/apm/appdynamics/javaagent.jar -Dappdynamics.agent.applicationName=<app-name>` where `<app-name>` is your App Service name.
209+
- If you're using **Tomcat**, create an environment variable named `CATALINA_OPTS` with the value `-javaagent:/home/site/wwwroot/apm/appdynamics/javaagent.jar -Dappdynamics.agent.applicationName=<app-name>` where `<app-name>` is your App Service name.
210+
- If you're using **WildFly**, see the AppDynamics documentation [here](https://docs.appdynamics.com/display/PRO45/JBoss+and+Wildfly+Startup+Settings) for guidance about installing the Java agent and JBoss configuration.
211+
182212
## Data sources
183213

184214
### Tomcat

articles/app-service/containers/configure-language-java.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,6 @@ To inject these secrets in your Spring or Tomcat configuration file, use environ
239239
240240
This section shows how to connect Java applications deployed on Azure App Service on Linux with the NewRelic and AppDynamics application performance monitoring (APM) platforms.
241241
242-
[Configure New Relic](#configure-new-relic)
243-
[Configure AppDynamics](#configure-appdynamics)
244-
245242
### Configure New Relic
246243
247244
1. Create a NewRelic account at [NewRelic.com](https://newrelic.com/signup)

0 commit comments

Comments
 (0)