Skip to content

Commit

Permalink
update example ports to 0.0.0.0 (defaults to localhost) and add annot…
Browse files Browse the repository at this point in the history
…ations example with remove note
  • Loading branch information
mackjmr committed Dec 13, 2024
1 parent 7f50ee1 commit 1a69194
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
annotations:
# Note: annotations support is temporary and will be removed in the future.
# Please use otelCollector Feature instead.
agent.datadoghq.com/otel-agent-enabled: "true"
name: datadog
spec:
global:
credentials:
apiKey: <DATADOG_API_KEY>
override:
nodeAgent:
customConfigurations:
otel-config.yaml:
configMap:
name: my-datadog-otel-config
items:
- key: otel-config.yaml
path: otel-config.yaml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: my-datadog-otel-config
labels:
app.kubernetes.io/name: "my-datadog"
app.kubernetes.io/version: "7"
data:
otel-config.yaml: |-
receivers:
prometheus:
config:
scrape_configs:
- job_name: "otel-agent"
scrape_interval: 10s
static_configs:
- targets: ["0.0.0.0:8888"]
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
exporters:
debug:
verbosity: detailed
datadog:
api:
key: ${env:DD_API_KEY}
processors:
infraattributes:
cardinality: 2
probabilistic_sampler:
hash_seed: 22
sampling_percentage: 15.3
batch:
timeout: 10s
connectors:
datadog/connector:
traces:
compute_top_level_by_span_kind: true
peer_tags_aggregation: true
compute_stats_by_span_kind: true
extensions:
health_check:
service:
extensions: [health_check]
telemetry:
logs:
level: debug
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [datadog/connector]
traces/sampled:
receivers: [otlp]
processors: [probabilistic_sampler, infraattributes, batch]
exporters: [datadog]
metrics:
receivers: [otlp, datadog/connector, prometheus]
processors: [infraattributes, batch]
exporters: [datadog]
logs:
receivers: [otlp]
processors: [infraattributes, batch]
exporters: [datadog]
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ data:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
exporters:
debug:
verbosity: detailed
datadog:
api:
key: <DATADOG_API_KEY>
key: ${env:DD_API_KEY}
processors:
batch:
connectors:
Expand Down
4 changes: 3 additions & 1 deletion examples/datadogagent/datadog-agent-with-otel-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ spec:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
exporters:
debug:
verbosity: detailed
datadog:
api:
key: ""
key: ${env:DD_API_KEY}
processors:
batch:
connectors:
Expand Down

0 comments on commit 1a69194

Please sign in to comment.