Skip to content

Commit 96dfb97

Browse files
authored
Merge pull request #753 from julianocosta89/datadog-exporter-add-otlp-logs-support
Document OTLP logs support to the datadog exporter
2 parents b8bea36 + d16d455 commit 96dfb97

File tree

1 file changed

+39
-4
lines changed

1 file changed

+39
-4
lines changed

src/docs/partners/datadog.mdx

+39-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: 'Datadog Exporter'
3-
description: Configure the AWS Distro for OpenTelemetry Collector to send metrics and traces to Datadog
3+
description: Configure the AWS Distro for OpenTelemetry Collector to send metrics, traces and logs to Datadog
44
path: '/docs/partners/datadog'
55
---
66

77
## Overview
88

9-
Datadog provides monitoring and insights into infrastructure and application performance across your entire stack. The AWS Distro for Open Telemetry includes the [Datadog exporter](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/master/exporter/datadogexporter), which takes OpenTelemetry data (metrics and traces) collected by the ADOT Collector and forwards it on to Datadog. From there, you can use Datadog tools and dashboards to analyze and solve performance problems in your distributed apps.
9+
Datadog provides monitoring and insights into infrastructure and application performance across your entire stack. The AWS Distro for OpenTelemetry includes the [Datadog exporter](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/master/exporter/datadogexporter), which takes OpenTelemetry data (metrics, traces and logs) collected by the ADOT Collector and forwards it on to Datadog. From there, you can use Datadog tools and dashboards to analyze and solve performance problems in your distributed apps.
1010

1111
## Prerequisites
1212

@@ -16,7 +16,7 @@ Datadog provides monitoring and insights into infrastructure and application per
1616

1717
## Configuring the exporter
1818

19-
Configure the ADOT collector to send metrics and traces to Datadog by adding a `datadog` exporter to your [OpenTelemetry configuration YAML file](https://opentelemetry.io/docs/collector/configuration/) along with your Datadog API key:
19+
Configure the ADOT collector to send metrics, traces and logs to Datadog by adding a `datadog` exporter to your [OpenTelemetry configuration YAML file](https://opentelemetry.io/docs/collector/configuration/) along with your Datadog API key:
2020

2121
```yaml lineNumbers=true
2222
datadog:
@@ -42,7 +42,7 @@ processors:
4242

4343
## Specifying resource attributes
4444

45-
On each OpenTelemetry-instrumented application, set the resource attributes `development.environment`, `service.name`, and `service.version` using [the language's SDK](https://opentelemetry.io/docs/). As a fall-back, you can also configure hostname (optionally) at the collector level for [unified service tagging](https://docs.datadoghq.com/getting_started/tagging/unified_service_tagging) by following the [example configuration file](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/master/exporter/datadogexporter/example/config.yaml). If you don't specify the hostname explicitly, the exporter attempts to get an automatic default by checking the following sources in order, falling back to the next one if the current one is unavailable or invalid:
45+
On each OpenTelemetry-instrumented application, set the resource attributes `development.environment.name`, `service.name`, and `service.version` using [the language's SDK](https://opentelemetry.io/docs/). As a fall-back, you can also configure hostname (optionally) at the collector level for [unified service tagging](https://docs.datadoghq.com/getting_started/tagging/unified_service_tagging) by following the [example configuration file](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/master/exporter/datadogexporter/example/config.yaml). If you don't specify the hostname explicitly, the exporter attempts to get an automatic default by checking the following sources in order, falling back to the next one if the current one is unavailable or invalid:
4646

4747
<!--- 1. Hostname set by another OpenTelemetry component -->
4848
1. Manually set the hostname in configuration
@@ -102,6 +102,10 @@ Here is an example configuration for collecting metrics data:
102102
receivers:
103103
otlp:
104104
105+
processors:
106+
batch:
107+
timeout: 10s
108+
105109
exporters:
106110
datadog/api:
107111
hostname: i-0e123a456a123456a
@@ -118,6 +122,37 @@ service:
118122
pipelines:
119123
metrics:
120124
receivers: [otlp]
125+
processors: [batch]
126+
exporters: [datadog/api]
127+
```
128+
129+
Here is an example configuration for collecting logs data:
130+
131+
```yaml lineNumbers=true
132+
receivers:
133+
otlp:
134+
135+
processors:
136+
batch:
137+
timeout: 10s
138+
139+
exporters:
140+
datadog/api:
141+
hostname: i-0e123a456a123456a
142+
143+
host_metadata:
144+
tags:
145+
- geo.country:fr
146+
147+
api:
148+
key: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
149+
site: datadoghq.eu
150+
151+
service:
152+
pipelines:
153+
logs:
154+
receivers: [otlp]
155+
processors: [batch]
121156
exporters: [datadog/api]
122157
```
123158

0 commit comments

Comments
 (0)