Skip to content

Commit d10c28a

Browse files
authored
Merge branch 'main' into ale/eng-9201-router-router-should-work-if-controlplane-is-down
2 parents 14307ad + 4feb4ec commit d10c28a

File tree

3 files changed

+60
-1
lines changed

3 files changed

+60
-1
lines changed

docs-website/docs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@
174174
"router/open-telemetry",
175175
"router/open-telemetry/custom-attributes",
176176
"router/open-telemetry/prometheus-otlp-ingestion",
177-
"router/open-telemetry/setup-opentelemetry-collector"
177+
"router/open-telemetry/setup-opentelemetry-collector",
178+
"router/open-telemetry/dynatrace"
178179
]
179180
},
180181
{

docs-website/router/open-telemetry.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ High metric cardinality can lead to performance issues by consuming excessive re
120120

121121
You can configure multiple exporters. A common case is to forward telemetry data to Cosmo Cloud and e.g. Datadog Agent which has native support to ingest [OpenTelemetry](https://docs.datadoghq.com/opentelemetry/) data.
122122

123+
For a Dynatrace example that exports to Dynatrace and Cosmo Cloud at the same time, see [Dynatrace](/router/open-telemetry/dynatrace).
124+
123125
<CodeGroup>
124126
```bash config.yaml
125127
telemetry:
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
title: "Dynatrace"
3+
description: "Export OpenTelemetry traces and metrics to Dynatrace and Cosmo Cloud."
4+
icon: "server"
5+
---
6+
7+
Use multiple OTLP exporters when you want to send telemetry data to Dynatrace and Cosmo Cloud at the same time.
8+
9+
<Warning>
10+
Do not commit Dynatrace API tokens to source control. Reference them through an environment variable such as `${DYNATRACE_API_TOKEN}`.
11+
</Warning>
12+
13+
## Router configuration
14+
15+
The following example exports traces and metrics to both Cosmo Cloud and Dynatrace:
16+
17+
<CodeGroup>
18+
```yaml config.yaml
19+
telemetry:
20+
service_name: "cosmo-router"
21+
22+
tracing:
23+
enabled: true
24+
exporters:
25+
# Cosmo Cloud
26+
- endpoint: https://cosmo-otel.wundergraph.com
27+
exporter: "http"
28+
headers: {Authorization: Bearer ${ROUTER_TOKEN}}
29+
30+
# Dynatrace traces
31+
- endpoint: https://${DYNATRACEHOST}.live.dynatrace.com
32+
path: /api/v2/otlp/v1/traces
33+
exporter: "http"
34+
headers: {Authorization: "Api-Token ${DYNATRACE_API_TOKEN}"}
35+
36+
metrics:
37+
otlp:
38+
enabled: true
39+
exporters:
40+
# Cosmo Cloud
41+
- endpoint: https://cosmo-otel.wundergraph.com
42+
exporter: "http"
43+
headers: {Authorization: Bearer ${ROUTER_TOKEN}}
44+
45+
# Dynatrace metrics
46+
- endpoint: https://${DYNATRACEHOST}.live.dynatrace.com
47+
path: /api/v2/otlp/v1/metrics
48+
exporter: "http"
49+
headers: {Authorization: "Api-Token ${DYNATRACE_API_TOKEN}"}
50+
```
51+
</CodeGroup>
52+
53+
## Notes
54+
55+
- Dynatrace uses different OTLP HTTP paths for traces and metrics.
56+
- If you do not want to export to Cosmo Cloud, remove the Cosmo Cloud exporters from the configuration.

0 commit comments

Comments
 (0)