You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/app-service/configure-language-java-apm.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,25 +49,25 @@ To enable via the Azure CLI, you need to create an Application Insights resource
49
49
50
50
3. Set the instrumentation key, connection string, and monitoring agent version as app settings on the web app. Replace `<instrumentationKey>` and `<connectionString>` with the values from the previous step.
51
51
52
-
# [Windows](#tab/windows)
53
-
54
-
```azurecli
55
-
az webapp config appsettings set -n <webapp-name> -g <resource-group> --settings "APPINSIGHTS_INSTRUMENTATIONKEY=<instrumentationKey>" "APPLICATIONINSIGHTS_CONNECTION_STRING=<connectionString>" "ApplicationInsightsAgent_EXTENSION_VERSION=~3" "XDT_MicrosoftApplicationInsights_Mode=default" "XDT_MicrosoftApplicationInsights_Java=1"
56
-
```
57
-
58
52
# [Linux](#tab/linux)
59
53
60
54
```azurecli
61
55
az webapp config appsettings set -n <webapp-name> -g <resource-group> --settings "APPINSIGHTS_INSTRUMENTATIONKEY=<instrumentationKey>" "APPLICATIONINSIGHTS_CONNECTION_STRING=<connectionString>" "ApplicationInsightsAgent_EXTENSION_VERSION=~3" "XDT_MicrosoftApplicationInsights_Mode=default"
62
56
```
63
57
58
+
# [Windows](#tab/windows)
59
+
60
+
```azurecli
61
+
az webapp config appsettings set -n <webapp-name> -g <resource-group> --settings "APPINSIGHTS_INSTRUMENTATIONKEY=<instrumentationKey>" "APPLICATIONINSIGHTS_CONNECTION_STRING=<connectionString>" "ApplicationInsightsAgent_EXTENSION_VERSION=~3" "XDT_MicrosoftApplicationInsights_Mode=default" "XDT_MicrosoftApplicationInsights_Java=1"
62
+
```
63
+
64
64
---
65
65
66
66
---
67
67
68
68
## Configure New Relic
69
69
70
-
# [Windows](#tab/windows)
70
+
# [Linux](#tab/linux)
71
71
72
72
1. Create a NewRelic account at [NewRelic.com](https://newrelic.com/signup)
73
73
2. Download the Java agent from NewRelic. It has a file name similar to *newrelic-java-x.x.x.zip*.
@@ -95,7 +95,7 @@ To enable via the Azure CLI, you need to create an Application Insights resource
95
95
96
96
::: zone-end
97
97
98
-
# [Linux](#tab/linux)
98
+
# [Windows](#tab/windows)
99
99
100
100
1. Create a NewRelic account at [NewRelic.com](https://newrelic.com/signup)
101
101
2. Download the Java agent from NewRelic. It has a file name similar to *newrelic-java-x.x.x.zip*.
@@ -130,16 +130,16 @@ To enable via the Azure CLI, you need to create an Application Insights resource
130
130
131
131
## Configure AppDynamics
132
132
133
-
# [Windows](#tab/windows)
133
+
# [Linux](#tab/linux)
134
134
135
135
1. Create an AppDynamics account at [AppDynamics.com](https://www.appdynamics.com/community/register/)
136
136
2. Download the Java agent from the AppDynamics website. The file name is similar to *AppServerAgent-x.x.x.xxxxx.zip*
137
-
3. Use the [Kudu console](https://github.com/projectkudu/kudu/wiki/Kudu-console) to create a new directory */home/site/wwwroot/apm*.
137
+
3. [SSH into your App Service instance](configure-linux-open-ssh-session.md) and create a new directory */home/site/wwwroot/apm*.
138
138
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*.
139
139
5. In the Azure portal, browse to your application in App Service and create a new Application Setting.
140
140
141
141
::: zone pivot="java-javase"
142
-
142
+
143
143
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. If you already have an environment variable for `JAVA_OPTS`, append the `-javaagent:/...` option to the end of the current value.
144
144
145
145
::: zone-end
@@ -156,16 +156,16 @@ To enable via the Azure CLI, you need to create an Application Insights resource
156
156
157
157
::: zone-end
158
158
159
-
# [Linux](#tab/linux)
159
+
# [Windows](#tab/windows)
160
160
161
161
1. Create an AppDynamics account at [AppDynamics.com](https://www.appdynamics.com/community/register/)
162
162
2. Download the Java agent from the AppDynamics website. The file name is similar to *AppServerAgent-x.x.x.xxxxx.zip*
163
-
3. [SSH into your App Service instance](configure-linux-open-ssh-session.md) and create a new directory */home/site/wwwroot/apm*.
163
+
3. Use the [Kudu console](https://github.com/projectkudu/kudu/wiki/Kudu-console) to create a new directory */home/site/wwwroot/apm*.
164
164
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*.
165
165
5. In the Azure portal, browse to your application in App Service and create a new Application Setting.
166
166
167
167
::: zone pivot="java-javase"
168
-
168
+
169
169
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. If you already have an environment variable for `JAVA_OPTS`, append the `-javaagent:/...` option to the end of the current value.
170
170
171
171
::: zone-end
@@ -186,20 +186,20 @@ To enable via the Azure CLI, you need to create an Application Insights resource
186
186
187
187
## Configure Datadog
188
188
189
-
# [Windows](#tab/windows)
189
+
# [Linux](#tab/linux)
190
190
* The configuration options are different depending on which Datadog site your organization is using. See the official [Datadog Integration for Azure Documentation](https://docs.datadoghq.com/integrations/azure/)
191
191
192
-
# [Linux](#tab/linux)
192
+
# [Windows](#tab/windows)
193
193
* The configuration options are different depending on which Datadog site your organization is using. See the official [Datadog Integration for Azure Documentation](https://docs.datadoghq.com/integrations/azure/)
194
194
195
195
---
196
196
197
197
## Configure Dynatrace
198
198
199
-
# [Windows](#tab/windows)
199
+
# [Linux](#tab/linux)
200
200
* Dynatrace provides an [Azure Native Dynatrace Service](https://www.dynatrace.com/monitoring/technologies/azure-monitoring/). To monitor Azure App Services using Dynatrace, see the official [Dynatrace for Azure documentation](https://docs.datadoghq.com/integrations/azure/)
201
201
202
-
# [Linux](#tab/linux)
202
+
# [Windows](#tab/windows)
203
203
* Dynatrace provides an [Azure Native Dynatrace Service](https://www.dynatrace.com/monitoring/technologies/azure-monitoring/). To monitor Azure App Services using Dynatrace, see the official [Dynatrace for Azure documentation](https://docs.datadoghq.com/integrations/azure/)
Copy file name to clipboardExpand all lines: articles/app-service/configure-language-java-data-sources.md
+90-90Lines changed: 90 additions & 90 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,96 @@ Next, determine if the data source should be available to one application or to
96
96
97
97
### Shared server-level resources
98
98
99
+
# [Linux](#tab/linux)
100
+
101
+
Adding a shared, server-level data source requires you to edit Tomcat's server.xml. The most reliable way to do this is as follows:
102
+
103
+
1. Upload a [startup script](./faq-app-service-linux.yml) and set the path to the script in **Configuration** > **Startup Command**. You can upload the startup script using [FTP](deploy-ftp.md).
104
+
105
+
Your startup script makes an [xsl transform](https://www.w3schools.com/xml/xsl_intro.asp) to the server.xml file and output the resulting xml file to `/usr/local/tomcat/conf/server.xml`. The startup script should install libxslt via apk. Your xsl file and startup script can be uploaded via FTP. Below is an example startup script.
106
+
107
+
```sh
108
+
# Install libxslt. Also copy the transform file to /home/tomcat/conf/
Finally, place the driver JARs in the Tomcat classpath and restart your App Service.
180
+
181
+
1. Ensure that the JDBC driver files are available to the Tomcat classloader by placing them in the */home/site/lib* directory. In the [Cloud Shell](https://shell.azure.com), run `az webapp deploy --type=lib` for each driver JAR:
If you created a server-level data source, restart the App Service Linux application. Tomcat resets `CATALINA_BASE` to `/home/tomcat` and uses the updated configuration.
188
+
99
189
# [Windows](#tab/windows)
100
190
101
191
You can't directly modify a Tomcat installation for server-wide configuration because the installation location is read-only. To make server-level configuration changes to your Windows Tomcat installation, the simplest way is to do the following on app start:
@@ -281,96 +371,6 @@ Finally, you place the driver JARs in the Tomcat classpath and restart your App
Adding a shared, server-level data source requires you to edit Tomcat's server.xml. The most reliable way to do this is as follows:
287
-
288
-
1. Upload a [startup script](./faq-app-service-linux.yml) and set the path to the script in **Configuration** > **Startup Command**. You can upload the startup script using [FTP](deploy-ftp.md).
289
-
290
-
Your startup script makes an [xsl transform](https://www.w3schools.com/xml/xsl_intro.asp) to the server.xml file and output the resulting xml file to `/usr/local/tomcat/conf/server.xml`. The startup script should install libxslt via apk. Your xsl file and startup script can be uploaded via FTP. Below is an example startup script.
291
-
292
-
```sh
293
-
# Install libxslt. Also copy the transform file to /home/tomcat/conf/
Finally, place the driver JARs in the Tomcat classpath and restart your App Service.
365
-
366
-
1. Ensure that the JDBC driver files are available to the Tomcat classloader by placing them in the */home/site/lib* directory. In the [Cloud Shell](https://shell.azure.com), run `az webapp deploy --type=lib` for each driver JAR:
If you created a server-level data source, restart the App Service Linux application. Tomcat resets `CATALINA_BASE` to `/home/tomcat` and uses the updated configuration.
0 commit comments