- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
",t};e.buildCustomizationMenuUi=t;function n(e){let t='
",t}function s(e){let n=e.filter.currentValue||e.filter.defaultValue,t='${e.filter.label}
`,e.filter.options.forEach(s=>{let o=s.id===n;t+=``}),t+="${e.filter.label}
`,t+=`This instrumentation method provides the following additional monitoring capabilities for Linux Azure App Service workloads:
Trace_ID
injection into application logs.This solution uses the startup command setting and Application Settings for Linux Azure App Service to instrument the application and manage its configuration. Java, Node, .NET, PHP, and Python are supported.
To instrument your application, begin by adding the following key-value pairs under App settings in your Azure “Environment variables” settings.
DD_API_KEY
is your Datadog API key.DD_CUSTOM_METRICS_ENABLED
(optional) enables custom metrics.DD_SITE
is the Datadog site parameter. Your site is
. This value defaults to datadoghq.com
.DD_SERVICE
is the service name used for this program. Defaults to the name field value in package.json
.DD_START_APP
is the command used to start your application. For example, node ./bin/www
(unnecessary for applications running in Tomcat).DD_PROFILING_ENABLED
(optional) Enables the Continuous Profiler, specific to .NET.Linux Azure App Service Web Apps built using the code deployment option on built-in runtimes depend on a startup command that varies by language. The default values are outlined in Azure’s documentation. Examples are included below.
Set these values in the DD_START_APP
environment variable. Examples below are for an application named datadog-demo
, where relevant.
Runtime | DD_START_APP Example Value | Description |
---|---|---|
Node.js | node ./bin/www | Runs the Node PM2 configuration file, or your script file. |
.NET Core | dotnet datadog-demo.dll | Runs a .dll file that uses your Web App name by default.Note: The .dll file name in the command should match the file name of your .dll file. In certain cases, this might not match your Web App. |
PHP | cp /home/site/wwwroot/default /etc/nginx/sites-available/default && service nginx reload | Copies script to correct location and starts application. |
Python | gunicorn --bind=0.0.0.0 --timeout 600 quickstartproject.wsgi | Custom startup script. This example shows a Gunicorn command for starting a Django app. |
Java | java -jar /home/site/wwwroot/datadog-demo.jar | The command to start your app. This is not required for applications running in Tomcat. |
Note: The application restarts when new settings are saved.
Go to General settings and add the following to the Startup Command field:
curl -s https://raw.githubusercontent.com/DataDog/datadog-aas-linux/v1.11.0/datadog_wrapper | bash
Download the datadog_wrapper
file from the releases and upload it to your application with the Azure CLI command:
az webapp deploy --resource-group <group-name> --name <app-name> --src-path <path-to-datadog-wrapper> --type=startup
When new Application Settings are saved, Azure restarts the application. However, if a startup command is added and saved, a restart may be required.
After the application restarts, you can view traces by searching for the service name (DD_SERVICE
) in the APM Service page of Datadog.
To enable custom metrics for your application with DogStatsD, add DD_CUSTOM_METRICS_ENABLED
and set it as true
in your Application Settings.
To configure your application to submit metrics, follow the appropriate steps for your runtime.
Datadog 계측을 제로 다운타임으로 업데이트하려면 배포 슬롯을 사용합니다. Azure CLI용 GitHub Action을 활용하는 워크플로우를 생성할 수 있습니다.
샘플 GitHub 워크플로우를 참조하세요.
If you are not receiving traces or custom metric data as expected, enable App Service logs to receive debugging logs.
Share the content of the Log stream with Datadog Support.
추가 유용한 문서, 링크 및 기사: