From dc060cf624ed7fddd6e4fee118cf4ff087852828 Mon Sep 17 00:00:00 2001 From: Phong Nguyen Date: Sun, 21 Jul 2024 16:59:42 +0700 Subject: [PATCH] update otel collector config --- tools/opentelemetry/docker-compose.yml | 10 +++------- tools/opentelemetry/otel-collector-config.yaml | 13 +++++-------- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/tools/opentelemetry/docker-compose.yml b/tools/opentelemetry/docker-compose.yml index c75f68376..7ab6e56e8 100644 --- a/tools/opentelemetry/docker-compose.yml +++ b/tools/opentelemetry/docker-compose.yml @@ -18,7 +18,7 @@ services: # Collector otel-collector: - image: otel/opentelemetry-collector-contrib-dev:latest + image: otel/opentelemetry-collector-contrib:latest command: ["--config=/etc/otel-collector-config.yaml"] volumes: - ./otel-collector-config.yaml:/etc/otel-collector-config.yaml @@ -59,12 +59,8 @@ services: - "5601:5601" - "9200:9200" - "5044:5044" - ulimits: - nofile: - soft: 65536 - hard: 65536 networks: default: - external: - name: phongnguyend + name: phongnguyend + external: true diff --git a/tools/opentelemetry/otel-collector-config.yaml b/tools/opentelemetry/otel-collector-config.yaml index 0a395fcf2..fddbcde83 100644 --- a/tools/opentelemetry/otel-collector-config.yaml +++ b/tools/opentelemetry/otel-collector-config.yaml @@ -1,18 +1,18 @@ receivers: otlp: protocols: - grpc: null + grpc: + endpoint: 0.0.0.0:4317 exporters: prometheus: endpoint: '0.0.0.0:8889' const_labels: label1: value1 - logging: null zipkin: endpoint: 'http://zipkin:9411/api/v2/spans' format: proto - jaeger: - endpoint: 'jaeger-all-in-one:14250' + otlp/jaeger: + endpoint: 'jaeger-all-in-one:4317' tls: insecure: true elasticsearch: @@ -38,16 +38,14 @@ service: processors: - batch exporters: - - logging - zipkin - - jaeger + - otlp/jaeger metrics: receivers: - otlp processors: - batch exporters: - - logging - prometheus logs: receivers: @@ -55,5 +53,4 @@ service: processors: - batch exporters: - - logging - elasticsearch