Skip to content

Commit

Permalink
added dynatrace
Browse files Browse the repository at this point in the history
  • Loading branch information
kfurfles committed Dec 15, 2023
1 parent adc8130 commit 2ffc207
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
otelcol:
environment:
- DT_OTLP_ENDPOINT
- DT_API_TOKEN
29 changes: 29 additions & 0 deletions src/otelcollector/otelcol-config-extras.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,32 @@
# pipelines:
# traces:
# exporters: [spanmetrics, otlphttp/example]
exporters:
# otlp/http exporter to Dynatrace.
otlphttp/dynatrace:
endpoint: "${DT_OTLP_ENDPOINT}"
headers:
Authorization: "Api-Token ${DT_API_TOKEN}"

processors:
cumulativetodelta:
filter/histograms:
error_mode: ignore
metrics:
metric:
- 'type == METRIC_DATA_TYPE_HISTOGRAM'

service:
pipelines:
traces/dynatrace:
receivers: [otlp]
processors: [batch]
exporters: [otlphttp/dynatrace]
metrics/dynatrace:
receivers: [otlp, spanmetrics]
processors: [filter/histograms, batch, cumulativetodelta]
exporters: [otlphttp/dynatrace]
logs/dynatrace:
receivers: [otlp]
processors: [batch]
exporters: [otlphttp/dynatrace]

0 comments on commit 2ffc207

Please sign in to comment.