-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathotel-collector-config.yaml
92 lines (79 loc) · 1.64 KB
/
otel-collector-config.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
receivers:
otlp:
protocols:
grpc:
processors:
batch:
attributes:
actions:
- action: insert
key: traceId
from_attribute: Trace ID
- action: insert
key: loki.attribute.labels
value: traceId
resource:
attributes:
- action: insert
key: loki.resource.labels
value: service_name
- action: insert
key: loki.resource.labels
value: host_name
attributes/database-service-tag:
include:
match_type: regexp
attributes:
- key: db.name
value: .*
actions:
- key: peer.service
action: insert
from_attribute: db.name
exporters:
prometheus:
endpoint: "0.0.0.0:8889"
const_labels:
exporter: OLTP
logging:
loglevel: debug
loki:
endpoint: http://grafana.loki:3100/loki/api/v1/push
tls:
insecure: true
otlp:
endpoint: grafana.tempo:4317
tls:
insecure: true
# zipkin:
# endpoint: "http://zipkin-all-in-one:9411/api/v2/spans"
# format: proto
#
# jaeger:
# endpoint: jaeger-all-in-one:14250
# tls:
# insecure: true
service:
extensions: [ pprof, zpages, health_check ]
telemetry:
logs:
level: "debug"
pipelines:
traces:
receivers: [ otlp ]
processors: [ attributes/database-service-tag ]
exporters: [ logging, otlp ]
metrics:
receivers: [ otlp ]
processors: [ batch ]
exporters: [ prometheus ]
logs:
receivers: [ otlp ]
processors: [ attributes, resource ]
exporters: [ loki ]
extensions:
health_check:
pprof:
endpoint: :1888
zpages:
endpoint: :55679