quickwit-oss / quickwit

Cloud-native search engine for observability. An open-source alternative to Datadog, Elasticsearch, Loki, and Tempo.
https://quickwit.io
Other
7.83k stars 315 forks source link

Fix make docker-compose-monitoring command #4008

Open fmassot opened 10 months ago

fmassot commented 10 months ago

I'm on linux.

When I run make docker-compose-monitoring, I get the following error:

make docker-compose-monitoring

Error response from daemon: driver failed programming external connectivity on endpoint jaeger (ea35fbae14701d0a13a1727f5af3ccb31f4e76f58061375374c432dc4720a8cc): Bind for 127.0.0.1:4318 failed: port is already allocated
make: *** [Makefile:36: docker-compose-monitoring] Error 1

If I comment in the docker compose file the lines, it will work. We need to keep those ports to send traces to Jaeger. There is a conflict with the OTEL collector. I think we don't need the OTEL collector to send traces to Jaeger now.

-      - "${MAP_HOST_JAEGER:-127.0.0.1}:4317:4317"   # OTLP over gRPC
-      - "${MAP_HOST_JAEGER:-127.0.0.1}:4318:4318"   # OTLP over HTTP

Another issue I had is that the Prometheus container does not manage to scrape metrics from a local Quickwit instances despite the extra_host setup "host.docker.internal:host-gateway" in the docker compose file. I don't know why it's not working on linux :/

Let's fix those two problems.

guilload commented 10 months ago

I'm already fixing the first problem in an upcoming PR. I ran into the issue when testing the Kafka exporter.