Реализовать ЛР 7 на оценку 3

This commit is contained in:
2026-12-04 14:27:18 +03:00
parent 31d441184b
commit 7996ebbb48
59 changed files with 2236 additions and 498 deletions
+30 -15
View File
@@ -1,16 +1,28 @@
extensions:
health_check:
endpoint: 0.0.0.0:13133
endpoint: 127.0.0.1:13133
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
endpoint: 127.0.0.1:14318
processors:
attributes/privacy:
actions:
- {key: http.url, action: delete}
- {key: http.target, action: delete}
- {key: url.full, action: delete}
- {key: url.query, action: delete}
- {key: http.request.header.authorization, action: delete}
- {key: db.connection_string, action: delete}
transform/privacy:
trace_statements:
- context: spanevent
statements:
- delete_key(attributes, "exception.message")
- delete_key(attributes, "exception.stacktrace")
memory_limiter:
check_interval: 1s
limit_mib: 192
@@ -22,11 +34,15 @@ processors:
exporters:
prometheus:
endpoint: 0.0.0.0:8889
endpoint: 127.0.0.1:18889
resource_to_telemetry_conversion:
enabled: true
otlphttp/loki:
endpoint: http://loki:3100/otlp
endpoint: https://loki:3100/otlp
tls: &export_tls
ca_file: /run/secrets/lab_ca
cert_file: /run/identity/public.crt
key_file: /run/identity/private.key
sending_queue:
enabled: true
num_consumers: 2
@@ -36,10 +52,9 @@ exporters:
initial_interval: 1s
max_interval: 5s
max_elapsed_time: 30s
otlp/tempo:
endpoint: tempo:4317
tls:
insecure: true
otlphttp/tempo:
endpoint: https://tempo:4318
tls: *export_tls
sending_queue:
enabled: true
num_consumers: 2
@@ -59,8 +74,8 @@ service:
- pull:
exporter:
prometheus:
host: 0.0.0.0
port: 8888
host: 127.0.0.1
port: 18888
pipelines:
metrics:
receivers: [otlp]
@@ -68,9 +83,9 @@ service:
exporters: [prometheus]
logs:
receivers: [otlp]
processors: [memory_limiter, batch]
processors: [memory_limiter, attributes/privacy, batch]
exporters: [otlphttp/loki]
traces:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [otlp/tempo]
processors: [memory_limiter, attributes/privacy, transform/privacy, batch]
exporters: [otlphttp/tempo]