Files
mtusi2026lab7/infra/otel/collector.yaml
T
imenno_on d15d78efdf
Skeleton contracts / contracts (pull_request) Blocked by required conditions
Добавил TLS и защиту мессенджера для лабораторной 7
2026-11-29 13:06:06 +03:00

51 lines
1.4 KiB
YAML

receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4318
tls:
cert_file: /run/pki/otel-collector.crt
key_file: /run/pki/otel-collector.key
client_ca_file: /run/pki/ca.crt
grpc:
endpoint: 0.0.0.0:4317
tls:
cert_file: /run/pki/otel-collector.crt
key_file: /run/pki/otel-collector.key
client_ca_file: /run/pki/ca.crt
processors:
memory_limiter: {check_interval: 1s, limit_mib: 256, spike_limit_mib: 64}
batch: {timeout: 2s, send_batch_size: 512}
exporters:
prometheus:
endpoint: 0.0.0.0:8889
tls:
cert_file: /run/pki/otel-collector.crt
key_file: /run/pki/otel-collector.key
namespace: messenger
send_timestamps: true
metric_expiration: 5m
otlphttp/tempo:
endpoint: https://lb:9743
tls: {ca_file: /run/pki/ca.crt}
otlphttp/loki:
endpoint: https://lb:9643/otlp
tls: {ca_file: /run/pki/ca.crt}
extensions:
health_check: {endpoint: 0.0.0.0:13133}
service:
extensions: [health_check]
pipelines:
metrics:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [prometheus]
traces:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [otlphttp/tempo]
logs:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [otlphttp/loki]