-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathotel-collector-config.yaml
55 lines (50 loc) · 1.04 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
receivers:
otlp:
protocols:
grpc:
exporters:
prometheus:
endpoint: "0.0.0.0:8889"
const_labels:
label1: value1
##设置exporters上报 collector 控制台信息
logging:
loglevel: "debug"
jaeger:
endpoint: 127.0.0.1:14250
tls:
insecure: true
processors:
batch:
tail_sampling:
##decision_wait: 10s
##num_traces: 100
##expected_new_traces_per_sec: 100
##定义尾部采样规则,只采集http status 返回非200 的链路信息
policies:
[
{
name: test-policy-1,
type: status_code,
status_code: {status_codes: [ERROR]}
}
]
extensions:
health_check:
pprof:
endpoint: :1888
service:
extensions: [pprof,health_check]
pipelines:
traces:
receivers: [otlp]
processors: [tail_sampling]
exporters: [jaeger,logging]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [prometheus,logging]
##设置 Collector log level
telemetry:
logs:
level: "info"