-
Notifications
You must be signed in to change notification settings - Fork 0
/
otel-collector.yaml
96 lines (91 loc) · 2.09 KB
/
otel-collector.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
extensions:
health_check:
pprof:
endpoint: 0.0.0.0:1777
zpages:
endpoint: 0.0.0.0:55679
receivers:
otlp:
protocols:
grpc:
http:
hostmetrics:
collection_interval: 10s
scrapers:
cpu:
disk:
load:
filesystem:
memory:
network:
paging:
httpcheck:
targets:
- endpoint: 'http://localhost:13133/health/status'
method: GET
- endpoint: 'http://localhost:13134/health/status'
method: GET
collection_interval: 15s
jaeger:
protocols:
grpc:
postgresql:
endpoint: postgres:5432
transport: tcp
username: uptrace
password: uptrace
databases:
- uptrace
tls:
insecure: true
prometheus/otelcol:
config:
scrape_configs:
- job_name: 'otelcol'
scrape_interval: 10s
static_configs:
- targets: ['0.0.0.0:8888']
processors:
resourcedetection:
detectors: ['system']
batch:
send_batch_size: 10000
timeout: 10s
exporters:
otlp/uptrace:
endpoint: http://uptrace:14317
tls: { insecure: true }
headers: { 'uptrace-dsn': 'http://project1_secret_token@localhost:14318?grpc=14317' }
prometheusremotewrite/uptrace:
endpoint: 'http://uptrace:14318/api/v1/prometheus/write'
tls:
insecure: true
headers: { 'uptrace-dsn': 'http://project1_secret_token@localhost:14318?grpc=14317' }
service:
telemetry:
metrics:
address: ':8888'
# logs:
# level: DEBUG
pipelines:
traces:
receivers: [otlp, jaeger]
processors: [batch]
exporters: [otlp/uptrace]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [otlp/uptrace]
metrics/hostmetrics:
receivers: [hostmetrics, postgresql, httpcheck]
processors: [batch, resourcedetection]
exporters: [otlp/uptrace]
logs:
receivers: [otlp]
processors: [batch]
exporters: [otlp/uptrace]
metrics/prom:
receivers: [prometheus/otelcol]
processors: [batch]
exporters: [prometheusremotewrite/uptrace]
extensions: [health_check, pprof, zpages]