-
Notifications
You must be signed in to change notification settings - Fork 30
/
otel-col-contrib-config.yaml
62 lines (51 loc) · 1.17 KB
/
otel-col-contrib-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
extensions:
health_check:
pprof:
endpoint: 0.0.0.0:1777
zpages:
endpoint: 0.0.0.0:55679
receivers:
otlp:
protocols:
grpc:
http:
processors:
batch:
send_batch_size: 10000
send_batch_max_size: 10240
timeout: 5s
tail_sampling:
decision_wait: 50s
num_traces: 200
expected_new_traces_per_sec: 10
policies:
[
{
name: test-policy-1,
type: numeric_attribute, ## 因为 min_value, max_value是闭区间。[201, 999]
numeric_attribute: {key: http.status_code, min_value: 201, max_value: 999}
}
]
exporters:
logging:
logLevel: DEBUG
sampling_initial: 5
sampling_thereafter: 200
jaeger:
endpoint: 192.168.2.6:14250
insecure: true
prometheusremotewrite:
endpoint: "http://192.168.2.6:9998"
namespace: "otel-collector-metrics-space"
insecure: true
service:
pipelines:
traces:
receivers: [otlp]
processors: [tail_sampling]
exporters: [logging, jaeger]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [logging, prometheusremotewrite]
extensions: [health_check, pprof, zpages]