-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathotel_collector_local.yaml
74 lines (71 loc) · 1.66 KB
/
otel_collector_local.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Copyright The Linux Foundation and its contributors.
# SPDX-License-Identifier: MIT
---
receivers:
# OTLP will receive traces from our application.
otlp:
protocols:
grpc:
# The hostmetrics receiver is required to get correct infrastructure metrics
# in Datadog.
hostmetrics:
collection_interval: 10s
scrapers:
paging:
metrics:
system.paging.utilization:
enabled: true
cpu:
metrics:
system.cpu.utilization:
enabled: true
disk:
filesystem:
metrics:
system.filesystem.utilization:
enabled: true
load:
memory:
network:
processes:
# The prometheus receiver scrapes metrics needed for the OpenTelemetry
# Collector Dashboard.
prometheus:
config:
scrape_configs:
- job_name: 'otelcol'
scrape_interval: 10s
static_configs:
- targets: ['0.0.0.0:8888']
processors:
# Datadog APM Intake limit is 3.2MB. Let's make sure the batches do not
# go over that.
batch:
send_batch_max_size: 1000
send_batch_size: 100
timeout: 10s
resource:
attributes:
- key: deployment.environment
value: ${DD_ENV}
action: upsert
exporters:
datadog:
api:
key: ${DD_API_KEY}
traces:
ignore_resources: ["GET /ping"]
jaeger:
endpoint: jaeger-all-in-one:14250
tls:
insecure: true
service:
pipelines:
metrics:
receivers: [hostmetrics, prometheus]
processors: [resource, batch]
exporters: [datadog]
traces:
receivers: [otlp]
processors: [resource, batch]
exporters: [datadog, jaeger]