From 8d401c62b6e0c53a6503180251080adecc60da45 Mon Sep 17 00:00:00 2001 From: Alex Kroman <12372+alexkroman@users.noreply.github.com> Date: Tue, 21 Jan 2025 12:14:34 -0800 Subject: [PATCH] Make sure that the otel colleector is correctly exposing a list of all metrics on port 8888 --- src/otel-collector/otelcol-config.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/otel-collector/otelcol-config.yml b/src/otel-collector/otelcol-config.yml index 248c372c4f..b2b481cdf9 100644 --- a/src/otel-collector/otelcol-config.yml +++ b/src/otel-collector/otelcol-config.yml @@ -86,10 +86,12 @@ receivers: - job_name: 'otel-collector' scrape_interval: 10s static_configs: - - targets: ['0.0.0.0:8888'] + - targets: ['otel-collector:8888'] exporters: debug: + prometheus: + endpoint: "otel-collector:8888" otlp: endpoint: "jaeger:4317" tls: @@ -128,7 +130,7 @@ service: metrics: receivers: [hostmetrics, docker_stats, httpcheck/frontend-proxy, otlp, prometheus, redis, spanmetrics] processors: [batch] - exporters: [otlphttp/prometheus, debug] + exporters: [otlphttp/prometheus, debug, prometheus] logs: receivers: [otlp] processors: [batch]