Skip to content

Commit

Permalink
Add api::site to all examples (#116)
Browse files Browse the repository at this point in the history
* Add api::site to all examples

* Update configurations/opentelemetry-collector/daemonset.yaml
  • Loading branch information
mx-psi authored Jun 11, 2024
1 parent bee0a3f commit 4ddf37c
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ exporters:
- otlp:true
- example:tag
api:
key: "${DD_API_KEY}"
key: ${DD_API_KEY}
site: ${DD_SITE}

connectors:
datadog/connector:
Expand Down
1 change: 1 addition & 0 deletions apps/kafka-metrics/otel-collector-config-gatherer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ exporters:
datadog:
api:
key: ${env:DD_API_KEY}
site: ${env:DD_SITE}
debug:
verbosity: detailed

Expand Down
1 change: 1 addition & 0 deletions apps/kafka-metrics/otel-collector-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ exporters:
datadog:
api:
key: ${env:DD_API_KEY}
site: ${env:DD_SITE}
logging:
verbosity: detailed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exporters:
hostname: "otelcol-docker"
api:
key: ${DD_API_KEY}
site: ${DD_SITE}
processors:
batch:
# using the sampler
Expand Down
2 changes: 1 addition & 1 deletion apps/rolldice-game/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ exporters:
datadog/exporter:
api:
site: datadoghq.com
key: <DATADOG_API_KEY>
key: ${env:DD_API_KEY}

processors:
batch:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ exporters:
hostname: "otelcol-docker"
api:
key: ${DD_API_KEY}
site: ${DD_SITE}

connectors:
datadog/connector:
Expand Down
8 changes: 7 additions & 1 deletion configurations/opentelemetry-collector/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ config:
exporters:
datadog:
api:
key: "${DD_API_KEY}"
key: ${env:DD_API_KEY}
site: ${env:DD_SITE}

connectors:
datadog/connector:

service:
telemetry:
metrics:
Expand All @@ -36,3 +39,6 @@ extraEnvs:
name: datadog-secrets
key: api-key
optional: false
- name: DD_SITE
value: datadoghq.com

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ extraEnvs:
name: datadog-secrets
key: api-key
optional: false
- name: DD_SITE
value: "datadoghq.com"
- name: OTEL_K8S_NAMESPACE
valueFrom:
fieldRef:
Expand Down Expand Up @@ -46,7 +48,8 @@ config:
send_count_sum_metrics: true
api:
key: "${DD_API_KEY}"
connector:
site: "${DD_SITE}"
connectors:
datadog/connector:
service:
telemetry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ exporters:
datadog/us:
api:
key: ${DD_API_KEY_US}
site: datadoghq.com
# Add resource attributes as tags
resource_attributes_as_tags: true
datadog/eu:
Expand Down

0 comments on commit 4ddf37c

Please sign in to comment.