Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
datadog:
  apm:
    enabled: true
    portEnabled: true
    socketEnabled: true
agents:
  customAgentConfig:
    apm_config:
      enabled: true
      apm_dd_url: "http://10.53.250.80/ingester"

Datadog Agent Runtime Metrics

To collect runtime metrics from the application and emit them using the DD agent, make use of the DogStatsD service which is used for custom metrics collection and emitting.

For proper function of the service ensure the following settings:

Code Block
datadog:
 dogstatsd:
    port: 8125 (default value)
    originDetection: true (Enable for pod and k8s labels)
    tagCardinality: orchestrator
    
    # Below values are needed for runtime metrics
    useHostPort: true
    nonLocalTraffic: true

To correctly send runtime metrics with the appropriate k8s labels such as namespace, add the following environment variable to your application service:

Code Block
env:
  - name: DD_ENTITY_ID
    valueFrom:
      fieldRef:
        fieldPath: metadata.uid