このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、お気軽にご連絡ください

Datadog Application Performance Monitoring (APM) provides deep visibility into your applications, enabling you to identify performance bottlenecks, troubleshoot issues, and optimize your services. This guide explains how to update the Datadog Agent configuration to enable APM and leverage its features on top of standalone backend error tracking.

If your agent is deployed on a Linux host, the configuration update depends on the method you used to install the agent.

For a Datadog agent installed using the one-line installation command:

  1. Open the datadog.yaml configuration file.

  2. Remove the enable_payloads and error_tracking_standalone attributes:

    - # Configuration to prevent sending metric data so that hosts don't show up in Datadog.
    - enable_payloads:
    -   series: false
    -   events: false
    -   service_checks: false
    -   sketches: false
    
      # Configuration to enable the collection of errors so they show up in Error Tracking.
      apm_config:
        enabled: true
    -   error_tracking_standalone:
    -     enabled: true
    
  3. Restart the Agent.

For a Datadog agent configured manually for Backend Error Tracking:

  1. Open the datadog.yaml configuration file.

  2. Remove the core_agent and error_tracking_standalone attributes:

    - core_agent:
    -   enabled: false
      apm_config:
    +   enabled: true
    -   error_tracking_standalone:
    -     enabled: true
    
  3. Restart the Agent.

If your agent is deployed in Kubernetes, you need to update its configuration in Datadog Operator or Helm depending on the method you used to install the Agent.

For a Datadog Agent installed with Helm:

  1. Update your datadog-values.yaml file, replacing the site and env values appropriately:

      agents:
        containers:
          agent:
            env:
              [...]
    -         - name: DD_CORE_AGENT_ENABLED
    -           value: "false"
      datadog:
    -   processAgent:
    -     enabled: false
    -     containerCollection: false
      apiKeyExistingSecret: datadog-secret
      site: <DATADOG_SITE>
      tags:
        - env:<AGENT_ENV>
      apm:
    -   errorTrackingStandalone:
    -     enabled: true
        # Required to enable Single-Step Instrumentation
        instrumentation:
          enabled: true
          libVersions:
            java: "1"
            dotnet: "3"
            python: "2"
            js: "5"
            php: "1"
    
  2. After making your changes, upgrade your Datadog Helm chart:

    helm upgrade -f datadog-values.yaml datadog-agent datadog/datadog
    
PREVIEWING: daljeet/migration-guide