From 991f6773e0461f5bf1701d6047d3776f946800bf Mon Sep 17 00:00:00 2001 From: jadz94 Date: Tue, 3 Dec 2024 15:44:02 +0100 Subject: [PATCH 1/2] chore: (ART-10521) add local otel collector --- infra/config/otel-collector-config.yaml | 23 +++++++++++++++++++++++ infra/docker-compose.yml | 17 ++++++++++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 infra/config/otel-collector-config.yaml diff --git a/infra/config/otel-collector-config.yaml b/infra/config/otel-collector-config.yaml new file mode 100644 index 0000000..50a07be --- /dev/null +++ b/infra/config/otel-collector-config.yaml @@ -0,0 +1,23 @@ +receivers: + otlp: + protocols: + grpc: + endpoint: 0.0.0.0:4317 + http: + endpoint: 0.0.0.0:4318 +processors: +extensions: + health_check: {} +exporters: + otlp: + endpoint: jaeger:4317 + tls: + insecure: true +service: + pipelines: + traces: + receivers: [otlp] + exporters: [otlp] + metrics: + receivers: [otlp] + exporters: [otlp] \ No newline at end of file diff --git a/infra/docker-compose.yml b/infra/docker-compose.yml index 8ffa697..ace2405 100644 --- a/infra/docker-compose.yml +++ b/infra/docker-compose.yml @@ -15,4 +15,19 @@ services: - ./config/.env - ./config/.env.secrets healthcheck: - test: ["CMD", "curl", "-o", "/dev/null", "http://localhost:8080/q/health"] \ No newline at end of file + test: ["CMD", "curl", "-o", "/dev/null", "http://localhost:8080/q/health"] + + otel-collector: + image: otel/opentelemetry-collector-contrib:latest + command: ["--config=/etc/otel-collector-config.yaml"] + volumes: + - ./config/otel-collector-config.yaml:/etc/otel-collector-config.yaml + ports: + - "4317:4317" # OTLP gRPC receiver + - "4318:4318" # OTLP HTTP receiver + jaeger: + image: jaegertracing/all-in-one:latest + ports: + - "6831:6831/udp" # UDP port for Jaeger agent + - "16686:16686" # Web UI + - "14268:14268" # HTTP port for spans \ No newline at end of file From 9c2f3c0b7ae7dacfb7dbdebc8e37a8a46af5901d Mon Sep 17 00:00:00 2001 From: jadz94 Date: Tue, 3 Dec 2024 15:45:06 +0100 Subject: [PATCH 2/2] chore: (ART-10521) update license --- infra/config/otel-collector-config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/infra/config/otel-collector-config.yaml b/infra/config/otel-collector-config.yaml index 50a07be..ce1be38 100644 --- a/infra/config/otel-collector-config.yaml +++ b/infra/config/otel-collector-config.yaml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 PNED G.I.E. +# +# SPDX-License-Identifier: Apache-2.0 + receivers: otlp: protocols: