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: content/en/serverless/azure_app_services/_index.md
+29-25Lines changed: 29 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,48 +28,52 @@ To get started with monitoring Azure App Service, install the Azure integration
28
28
29
29
### Azure Integration
30
30
31
-
The [Azure integration][3] provides [enriched metrics][2] and resource metadata for Azure App Service, and are required for the [Azure App Service View][4] in Datadog. Follow the [Azure integration setup instructions][6] to install the Azure integration.
31
+
The [Azure integration][2] provides [enriched metrics][3] and resource metadata for Azure App Service, and are required for the [Azure App Service View][4] in Datadog. Follow the [Azure integration setup instructions][5] to install the Azure integration.
32
32
33
-
Additionally, [set up Azure log forwarding][5] to automatically collect and send Azure App Service resource and application logs to Datadog.
33
+
Additionally, [set up Azure log forwarding][6] to automatically collect and send Azure App Service resource and application logs to Datadog.
34
34
35
35
### Azure App Service Instrumentation
36
36
37
37
To monitor Azure App Service workloads with APM and custom metrics, install instrumentation on your Azure App Service workloads. This instrumentation is available for both Windows and Linux App Services, and supports the following runtimes on Basic, Standard, and Premium plans:
Copy file name to clipboardExpand all lines: content/en/serverless/azure_app_services/azure_app_services_linux.md
+88-38Lines changed: 88 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ further_reading:
9
9
10
10
This solution uses a sidecar container and Application Settings for Linux Azure App Service to instrument the application and manage its configuration.
11
11
12
-
If you would prefer to not use the sidecar approach (Not Recommended), you can instead follow the instructions to [Instrument Azure App Service - Linux Code Deployment with the Datadog wrapper][17].
12
+
If you would prefer to not use the sidecar approach (Not Recommended), you can instead follow the instructions to [Instrument Azure App Service - Linux Code Deployment with the Datadog wrapper][1].
**Note**: When you complete Step 2, ensure that you also set the [additional environment variables](#configure-environment-variables) required by the .NET tracer.
@@ -123,27 +132,64 @@ Additional flags, like `--service` and `--env`, can be used to set the service a
123
132
1. **Configure environment variables**.
124
133
In Azure, add the following key-value pairs in **Settings** > **Configuration** > **Application settings**:
125
134
126
-
| Name | Value | Description |
127
-
|------|-------|-------------|
128
-
| `DD_API_KEY` | Your Datadog API key. | See [Organization Settings > API Keys][301] in Datadog. |
129
-
| `DD_SITE` | {{< region-param key="dd_site" code="true" >}} | Your [Datadog site][302]. Defaults to `datadoghq.com`. |
130
-
| `DD_SERVICE` | Your application's service name. | Defaults to the name field value in`package.json`. |
131
-
|`DD_ENV`| Your application's environment name. | There is no default value for this field. |
132
-
| `DD_SERVERLESS_LOG_PATH` | The log path the sidecar uses to collect logs. | Where you write your logs. For example, `/home/LogFiles/*.log` or `/home/LogFiles/myapp/*.log`. |
133
-
| `WEBSITES_ENABLE_APP_SERVICE_STORAGE` | `true` | Setting this environment variable to `true` allows the `/home/` mount to persist and be shared with the sidecar. |
135
+
`DD_API_KEY`
136
+
: **Value**: Your Datadog API key.<br>
137
+
See [Organization Settings > API Keys][301] in Datadog.<br>
For .NET applications, the following environment variables are **required** unless otherwise specified:
169
+
For .NET applications, the following environment variables are **required**. See the `Datadog.Tracer.Bundle` [Nuget package README file][1] for more details.
170
+
171
+
`DD_DOTNET_TRACER_HOME`
172
+
: **Value**: `/home/site/wwwroot/datadog`<br>
173
+
Path to the directory containing the .NET tracing libraries.<br>
174
+
175
+
`DD_TRACE_LOG_DIRECTORY`
176
+
: **Value**: `/home/LogFiles/dotnet`<br>
177
+
Path where the .NET tracing library will write its logs.<br>
178
+
179
+
`CORECLR_ENABLE_PROFILING`
180
+
: **Value**: `1`<br>
181
+
Enables the instrumentation APIs in the .NET runtime.<br>
138
182
139
-
| Name | Value | Description |
140
-
|------|-------|-------------|
141
-
| `DD_DOTNET_TRACER_HOME` | `/home/site/wwwroot/datadog` | Path to tracing libraries, copied within the Docker file |
142
-
| `DD_TRACE_LOG_DIRECTORY` | `/home/LogFiles/dotnet` | Where tracer logs are stored |
143
-
| `CORECLR_ENABLE_PROFILING` | 1 | Instructs the .NET CLR that profiling should be enabled. |
| `CORECLR_PROFILER_PATH` | `/home/site/wwwroot/datadog/linux-musl-x64/Datadog.Trace.ClrProfiler.Native.so` | The profiler binary that the .NET CLR loads into memory, which contains the GUID. |
After your application restarts, go to Datadog's [APM Service page][4] and search for the service name you set for your application (`DD_SERVICE`).
221
+
After your application restarts, go to Datadog's [APM Service page][1] and search for the service name you set for your application (`DD_SERVICE`).
175
222
176
223
### Custom metrics
177
224
178
225
To configure your application to submit custom metrics, follow the appropriate steps for your runtime:
179
226
180
-
- [Java][9]
181
-
- [Node][5]
182
-
- [.NET][6]
183
-
- [PHP][10]
184
-
- [Python][11]
227
+
- [Java][3]
228
+
- [Node.js][4]
229
+
- [.NET][5]
230
+
- [PHP][6]
231
+
- [Python][7]
232
+
233
+
### Continuous Profiler
234
+
235
+
To enable the Continuous Profiler, set the environment variable `DD_PROFILING_ENABLED=true`. For more information, see the [Continuous Profiler documentation][8].
185
236
186
237
## Deployment
187
238
@@ -195,19 +246,18 @@ Be sure to enable **App Service logs** to receive debugging logs.
195
246
196
247
{{< img src="serverless/azure_app_service/app-service-logs.png" alt="Azure App Service Configuration: App Service logs, under the Monitoring section of Settings in the Azure UI. The 'Application logging' option is set to 'File System'." style="width:100%;" >}}
197
248
198
-
Share the content of the **Log stream** with [Datadog Support][14].
249
+
Share the content of the **Log stream** with [Datadog Support][9].
0 commit comments