From f8fd8e1bc50924a8dda0228624f616a599aaf00a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Sch=C3=A4fer?= Date: Tue, 7 Oct 2025 17:53:55 +0200 Subject: [PATCH] fix: Update otel-collector.yaml and docker-compose to correct endpoint configurations and enhance resource detection --- docker-compose.metrics.yml | 2 +- examples/otel-collector.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker-compose.metrics.yml b/docker-compose.metrics.yml index 69746f1..7c8e889 100644 --- a/docker-compose.metrics.yml +++ b/docker-compose.metrics.yml @@ -20,7 +20,7 @@ services: OTEL_EXPORTER_OTLP_ENDPOINT: "collector:4317" OTEL_EXPORTER_OTLP_INSECURE: "true" OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE: "cumulative" - NEWT_ADMIN_ADDR: "0.0.0.0:2112" + NEWT_ADMIN_ADDR: ":2112" # Base NEWT configuration PANGOLIN_ENDPOINT: ${PANGOLIN_ENDPOINT} NEWT_ID: ${NEWT_ID} diff --git a/examples/otel-collector.yaml b/examples/otel-collector.yaml index 6000013..b00cb67 100644 --- a/examples/otel-collector.yaml +++ b/examples/otel-collector.yaml @@ -2,7 +2,7 @@ receivers: otlp: protocols: grpc: - endpoint: 0.0.0.0:4317 + endpoint: ":4317" processors: memory_limiter: @@ -10,7 +10,7 @@ processors: limit_percentage: 80 spike_limit_percentage: 25 resourcedetection: - detectors: [env, host] + detectors: [env, system] timeout: 5s batch: {} transform/promote: @@ -19,12 +19,12 @@ processors: metric_statements: - context: datapoint statements: - - set(attributes["service_instance_id"], resource.attributes["service.instance.id"]) where IsSet(resource.attributes["service.instance.id"]) - - set(attributes["site_id"], resource.attributes["site_id"]) where IsSet(resource.attributes["site_id"]) + - set(attributes["service_instance_id"], resource.attributes["service.instance.id"]) where resource.attributes["service.instance.id"] != nil + - set(attributes["site_id"], resource.attributes["site_id"]) where resource.attributes["site_id"] != nil exporters: prometheus: - endpoint: 0.0.0.0:8889 + endpoint: ":8889" send_timestamps: true # Falls du kein Remote-Write-Ziel hast, kommentiere es aus: # prometheusremotewrite: