jaeger: jaeger agent can't connect to collector
jaeger-agent deployment command:
docker run -d --name agent --rm -p5775:5775/udp -p6831:6831/udp -p6832:6832/udp -p5778:5778/tcp jaegertracing/jaeger-agent /go/bin/agent-linux --collector.host-port=localhost:14267
jaeger-collector deployment command:
docker run -d --rm -p16686:16686/tcp jaegertracing/jaeger-query /go/bin/query-linux --es.server-urls=http://es-server:9200 --span-storage.type=elasticsearch --query.static-files=/go/jaeger-ui/
logs of jaeger-agent container

The firewalld is inactive and SELINUX is disabled.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 25 (8 by maintainers)
@jpkrohling This the thing. The jager agent has own machine, collector and ui in the another machine. First I try to connect to es backend , but I cant catch any trace. So I try to use collector with memory backend. In the same situation I cant catch any trace. Here is my docker compose file:
log show:
The agent log show:
thanks in advance !
On Docker, 127.0.0.1 is the container itself, not the host where it’s running. Please, refer to Docker documentation about networking and/or linking containers.
https://docs.docker.com/network/ https://docs.docker.com/network/links/
@jpkrohling thanks for the reply
I tried exposing the ports in the host. I got the below output
From Collector docker run --rm --env SPAN_STORAGE_TYPE=elasticsearch -p14267:14267/tcp -p14268:14268 -p9411:9411 jaegertracing/jaeger-collector /go/bin/collector-linux --es.server-urls=http://es-ip:9200 --log-level=debug
{“level”:“info”,“ts”:1529300740.434398,“caller”:“healthcheck/handler.go:99”,“msg”:“Health Check server started”,“http-port”:14269,“status”:“unavailable”} {“level”:“info”,“ts”:1529300740.6546476,“caller”:“static/strategy_store.go:77”,“msg”:“No sampling strategies provided, using defaults”} {“level”:“info”,“ts”:1529300740.6550906,“caller”:“collector/main.go:141”,“msg”:“Registering metrics handler with HTTP server”,“route”:“/metrics”} {“level”:“info”,“ts”:1529300740.655314,“caller”:“collector/main.go:149”,“msg”:“Starting Jaeger Collector HTTP server”,“http-port”:14268} {“level”:“info”,“ts”:1529300740.6554735,“caller”:“healthcheck/handler.go:133”,“msg”:“Health Check state change”,“status”:“ready”}
Form Agent {“level”:“info”,“ts”:1529300741.6044064,“caller”:“peerlistmgr/peer_list_mgr.go:166”,“msg”:“Trying to connect to peer”,“host:port”:“54.174.65.124:14267”} {“level”:“info”,“ts”:1529300741.6142902,“caller”:“peerlistmgr/peer_list_mgr.go:176”,“msg”:“Connected to peer”,“host:port”:“[::]:14267”}
It is showing that both Collector and Agent are connected to each other.
But once i run run the application, I can’t see any logs in Jaeger UI , It is not creating the service also. How to fix this?
How to find collector are collecting the logs.