Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore][exporter/datadog] Add Datadog connector to all examples using traces #33114

Merged
merged 3 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions exporter/datadogexporter/examples/batch-memory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,24 @@ exporters:
api:
key: ${env:DD_API_KEY}

connectors:
datadog/connector:

service:
pipelines:
traces:
receivers: [otlp]
processors: [batch, memory_limiter]
processors: [memory_limiter, batch]
exporters: [datadog/connector]
traces/sampling:
receivers: [datadog/connector]
processors: [memory_limiter, batch]
exporters: [datadog]
metrics:
receivers: [otlp]
processors: [batch, memory_limiter]
receivers: [otlp, datadog/connector]
processors: [memory_limiter, batch]
exporters: [datadog]
logs:
receivers: [otlp]
processors: [batch, memory_limiter]
processors: [memory_limiter, batch]
exporters: [datadog]
21 changes: 18 additions & 3 deletions exporter/datadogexporter/examples/collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ processors:
resourcedetection:
detectors: [gcp, ecs, ec2, azure, system]

# Read more about exporters here:
# https://opentelemetry.io/docs/collector/configuration/#connectors
connectors:
# The Datadog connector is necessary for APM Trace metrics.
datadog/connector:

# Read more about exporters here:
# https://opentelemetry.io/docs/collector/configuration/#exporters
exporters:
Expand Down Expand Up @@ -483,15 +489,24 @@ service:
# Pipelines starting with `metrics` or `metrics/` define a metrics pipeline.
metrics:
# This pipeline has an OTLP receiver, a batch processor and a Datadog exporter.
# It also has additional receivers which generate valuable metrics.
receivers: [hostmetrics, docker_stats, otlp]
# It also has additional receivers which generate valuable metrics and the Datadog connector for trace metrics.
receivers: [hostmetrics, docker_stats, otlp, datadog/connector]
processors: [k8sattributes, batch]
exporters: [datadog]
# Pipelines starting with `traces` or `traces/` define a traces pipeline.
traces:
# This pipeline has an OTLP receiver, a batch processor and a Datadog exporter.
# This pipeline has an OTLP receiver, a batch processor and a Datadog connector.
# It sends all the traces to the Datadog connector for generating trace metrics.
receivers: [otlp]
processors: [k8sattributes, batch]
exporters: [datadog/connector]
traces/sampling:
# This pipeline has a Datadog connector, a batch processor and a Datadog exporter.
# It receivers all traces from the Datadog connector and sends them to Datadog.
# Add any sampling here, so that the generated trace metrics account for all traces.
receivers: [datadog/connector]
# Add any sampling here
processors: []
exporters: [datadog]

# Pipelines starting with `logs` or `logs/` define a logs pipeline.
Expand Down
2 changes: 1 addition & 1 deletion exporter/datadogexporter/examples/host-metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ service:
receivers: [otlp]
processors: [batch, transform]
exporters: [datadog/connector]
traces/2:
traces/sampling:
receivers: [datadog/connector]
processors: [batch, probabilistic_sampler]
exporters: [datadog]
Expand Down
15 changes: 11 additions & 4 deletions exporter/datadogexporter/examples/ootb-ec2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,24 @@ exporters:
traces:
trace_buffer: 500

connectors:
datadog/connector:

service:
pipelines:
metrics:
receivers: [otlp, hostmetrics]
processors: [batch, resourcedetection, memory_limiter]
receivers: [datadog/connector, otlp, hostmetrics]
processors: [memory_limiter, batch, resourcedetection]
exporters: [datadog]
traces:
receivers: [otlp]
processors: [batch, resourcedetection, memory_limiter]
processors: [memory_limiter, batch, resourcedetection]
exporters: [datadog/connector]
traces/sampling:
receivers: [datadog/connector]
processors: [memory_limiter, batch, resourcedetection]
exporters: [datadog]
logs:
receivers: [otlp, filelog]
processors: [batch, resourcedetection, memory_limiter]
processors: [memory_limiter, batch, resourcedetection]
exporters: [datadog]
9 changes: 8 additions & 1 deletion exporter/datadogexporter/examples/otlp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,22 @@ exporters:
site: ${env:DD_SITE}
key: ${env:DD_API_KEY}

connectors:
datadog/connector:

service:
pipelines:
metrics:
receivers: [otlp]
receivers: [otlp, datadog/connector]
processors: [batch]
exporters: [datadog]
traces:
receivers: [otlp]
processors: [batch]
exporters: [datadog/connector]
traces/2:
receivers: [datadog/connector]
processors: [batch]
exporters: [datadog]
logs:
receivers: [otlp]
Expand Down
2 changes: 1 addition & 1 deletion exporter/datadogexporter/examples/trace-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ service:
receivers: [otlp]
processors: [batch]
exporters: [datadog/connector]
traces/2:
traces/sampling:
receivers: [datadog/connector]
processors: [batch, probabilistic_sampler]
exporters: [datadog]
Expand Down