Skip to content

Files

Latest commit

 

History

History
 
 

datadogexporter

Datadog Exporter

Status
Stability traces beta
metrics beta
logs alpha
Supported pipeline types traces, metrics, logs
Distributions contrib, AWS

This exporter sends metric, traces and logs to Datadog. For environment specific setup instructions visit the Datadog Documentation.

Please review the Collector's security documentation, which contains recommendations on securing sensitive information such as the API key required by this exporter.

Configuration

The only required setting is a Datadog API key.

datadog:
  api:
    key: "<API key>"

To send data to the Datadog EU site, set the api.site parameter to datadoghq.eu:

datadog:
  api:
    key: "<API key>"
    site: datadoghq.eu

If you want to use the OpenTelemetry Span Name as the Datadog Resource Name you can set the span_name_as_resource_name configuration option to true (default is false). For more info on the downsides of this option check this issue.

datadog:
 api:
   key: "<API key>"
 traces:
   span_name_as_resource_name: true

The hostname can be set in the configuration or via semantic conventions. If none is present, the exporter will add one based on the environment.

See the sample configuration files under the example folder for other available options, as well as an example K8s Manifest. This exporter also supports the exporterhelper queuing, retry and timeout settings documented here. Retry settings will only affect metrics.

Support for Span Events

Please Note: Currently Span Events are extracted and added to Spans as Json on the Datadog Span Tag events.