generated from EzzioMoreira/template-modulo-terraform
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathotel-collector.yaml
58 lines (50 loc) · 1.1 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
receivers:
otlp:
protocols:
grpc:
filelog:
include: ["/etc/log/*/*.log"]
prometheus:
config:
scrape_configs:
- job_name: otel-collector-metrics
scrape_interval: 30s
static_configs:
- targets: ['127.0.0.1:8888']
docker_stats:
collection_interval: 10s
endpoint: unix:///var/run/docker.sock
processors:
metricstransform:
transforms:
- include: .+
match_type: regexp
action: insert
new_name: srv.docker
operations:
- action: add_label
new_label: srv.docker
new_value: srv-rapadura-corp
exporters:
otlp:
endpoint: tempo:4317
tls:
insecure: true
prometheusremotewrite:
endpoint: http://mimir:9009/api/v1/push
loki:
endpoint: http://loki:3100/loki/api/v1/push
tls:
insecure: true
service:
pipelines:
traces:
receivers: [otlp]
exporters: [otlp]
metrics:
receivers: [prometheus]
processors: [metricstransform]
exporters: [prometheusremotewrite]
logs:
receivers: [filelog]
exporters: [loki]