-
Notifications
You must be signed in to change notification settings - Fork 0
/
collector-config.yaml
68 lines (65 loc) · 1.36 KB
/
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
receivers:
otlp:
protocols:
grpc:
http:
otlp/traces:
protocols:
grpc:
endpoint: 0.0.0.0:4417
filelog:
include: [ /var/log/sre/minhaApp.log ]
exporters:
prometheus:
endpoint: "0.0.0.0:9464"
loki:
endpoint: http://loki:3100/loki/api/v1/push
default_labels_enabled:
exporter: true
job: true
otlp/traces:
endpoint: tempo:4517
tls:
insecure: true
processors:
batch:
resource:
attributes:
- key: service_name
value: "metal-app"
action: upsert
- key: deployment_environment
value: "dev"
action: upsert
- action: insert
key: loki.resource.labels
value: service_name, deployment_environment
tail_sampling:
decision_wait: 10s
policies:
[
{
name: errors-policy,
type: status_code,
status_code: { status_codes: [ERROR] }
},
{
name: randomized-policy,
type: probabilistic,
probabilistic: { sampling_percentage: 25 },
},
]
service:
pipelines:
metrics:
receivers: [otlp]
exporters: [prometheus]
processors: [batch]
logs:
receivers: [filelog]
processors: [resource]
exporters: [loki]
traces:
receivers: [otlp/traces]
processors: [resource,tail_sampling]
exporters: [otlp/traces]