@@ -16,39 +16,8 @@ receivers:
1616 endpoint : " merginmaps-redis:6379"
1717 collection_interval : 10s
1818 # password: "${REDIS_PASSWORD}"
19- # This replaces Promtail
20- filelog :
21- include :
22- - /var/lib/docker/containers/*/*.log
23- start_at : end
24- include_file_path : true
25- operators :
26- - type : json_parser
27- - type : move
28- from : attributes.log
29- to : body
30- - type : regex_parser
31- parse_from : attributes["log.file.path"]
32- regex : ' /var/lib/docker/containers/(?P<container_id>[a-f0-9]{12})'
33- on_error : send
34-
3519processors :
36- resourcedetection/docker :
37- detectors : [env, docker]
38- timeout : 2s
39- override : true
40- filter/exclude_collector :
41- logs :
42- log_record :
43- - ' IsMatch(body, ".*exporterhelper.*")'
44- - ' IsMatch(body, ".*Debug.*")'
45- - ' IsMatch(body, ".*kind.*exporter.*")'
4620 batch :
47- transform/logs :
48- log_statements :
49- - context : log
50- statements :
51- - set(resource.attributes["container_id"], attributes["container_id"]) where attributes["container_id"] != nil
5221 transform :
5322 metric_statements :
5423 - context : metric
@@ -67,13 +36,6 @@ processors:
6736 # statements:
6837 # - set(attributes["service_name"], attributes["docker_id"])
6938 # - set(resource.attributes["service.name"], attributes["docker_id"])
70- attributes :
71- actions :
72- - key : service.name
73- action : insert
74- value : " merginmaps"
75-
76-
7739exporters :
7840 prometheus :
7941 endpoint : " 0.0.0.0:8889" # The Collector will "host" metrics here
@@ -84,21 +46,6 @@ exporters:
8446 endpoint : " merginmaps-tempo:4317"
8547 tls :
8648 insecure : true
87- loki :
88- endpoint : " http://merginmaps-loki:3100/loki/api/v1/push"
89- # This ensures the trace and span IDs are included in the log metadata
90- default_labels_enabled :
91- exporter : true
92- job : true
93- instance : true
94- level : true
95- debug :
96- verbosity : detailed
97- otlphttp/loki :
98- endpoint : " http://loki:3100/otlp"
99- tls :
100- insecure : true
101-
10249service :
10350 extensions : [health_check]
10451 telemetry :
@@ -115,7 +62,3 @@ service:
11562 receivers : [otlp]
11663 processors : [batch]
11764 exporters : [otlp]
118- logs :
119- receivers : [filelog]
120- processors : [filter/exclude_collector, resourcedetection/docker, attributes, transform/logs, batch]
121- exporters : [otlphttp/loki]
0 commit comments