From 500af023de83af66e3efb59ef3fddbe0111df3cd Mon Sep 17 00:00:00 2001 From: asepharyana Date: Sun, 2 Aug 2026 19:59:31 +0700 Subject: [PATCH] fix(infra): otel collector no self-loop trace export - hapus otlp/jaeger exporter (jaeger mati sejak Docker dihapus) yang nunjuk ke 127.0.0.1:4317 (port receiver sendiri) -> loop trace tanpa henti, ~1.8jt baris log/hari di journal - traces pipeline -> nop exporter, metrics -> prometheus - logs pipeline dihapus (tidak ada konsumen) --- infra/otel/otel-collector-config.yml | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/infra/otel/otel-collector-config.yml b/infra/otel/otel-collector-config.yml index 6a714d0..e5d257c 100644 --- a/infra/otel/otel-collector-config.yml +++ b/infra/otel/otel-collector-config.yml @@ -5,56 +5,37 @@ receivers: endpoint: 0.0.0.0:4317 http: endpoint: 0.0.0.0:4318 - exporters: - otlp/jaeger: - endpoint: jaeger:4317 - tls: - insecure: true - + nop: prometheus: endpoint: 0.0.0.0:8889 enable_open_metrics: true resource_to_telemetry_conversion: enabled: true - - debug: - verbosity: normal - sampling_initial: 5 - sampling_thereafter: 100 - processors: batch: timeout: 1s send_batch_size: 1024 - memory_limiter: check_interval: 1s limit_mib: 512 spike_limit_mib: 128 - attributes: actions: - key: service.namespace value: asepharyana-hub action: upsert - extensions: health_check: endpoint: 0.0.0.0:13133 - service: extensions: [health_check] pipelines: traces: receivers: [otlp] processors: [memory_limiter, batch, attributes] - exporters: [otlp/jaeger, debug] + exporters: [nop] metrics: receivers: [otlp] processors: [memory_limiter, batch, attributes] - exporters: [prometheus, debug] - logs: - receivers: [otlp] - processors: [memory_limiter, batch, attributes] - exporters: [debug] + exporters: [prometheus]