-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jaegertracing with Docker #286
Comments
Are you able to enter the Agent's container and contact the Collector? The very first test could be something like: $ docker exec -it CONTAINER_NAME bash
bash$ ping jaeger-collector If it works, then a |
Actually, it looks like the connection was made:
|
ok, i just double checked it, and noticed that i tinkered with the port. so when i'm setting the agents collector setting to:
when i go with
i adjusted the compose file above to reflect my setup more properly. connecting the agent and running the cmds you suggested yield:
|
FYI - this is what I use, works fine: version: '2'
services:
cassandra:
image: cassandra:3.11
environment:
CASSANDRA_BROADCAST_ADDRESS: localhost
volumes:
- /opt/cassandra:/var/lib/cassandra
network_mode: host
logging:
options:
max-size: 5m
jaeger_query:
image: jaegertracing/jaeger-query
network_mode: host
command: /go/bin/query-linux --query.static-files=/go/jaeger-ui/ -cassandra.keyspace jaeger_v1_test -cassandra.servers localhost -cassandra.connections-per-host 2 -query.port 8080
jaeger_collector:
image: jaegertracing/jaeger-collector
logging:
options:
max-size: 5m
network_mode: host
command: /go/bin/collector-linux -cassandra.keyspace jaeger_v1_test -cassandra.servers localhost -cassandra.connections-per-host 2 I added max-size for logs because cassandra has tendency to go OOM and then query/collector start spamming with errors, fill up the volume with docker logs and everything dies. I have no clue why, it just looks like it leaks memory (in 3.10). Setting net=host makes things simple |
@de-robat it would be nice to have a proven docker-compose file in the main repo that people could "just run" - it's certainly simpler than deploying to k8s. Do you think you could do a pull request? Regarding the keyspace initialization, I think you can use |
Yes, i'll do a pull request once i got it working to my satisfaction. |
@jpkrohling had the time to do more testing today. replies to your suggestions are: i can ping the collector from within the agents container, and a curl to ...:14268 yields a "404" . |
@mabn |
@mabn and if you mind to respond would you please add the versions of the jaeger components you used. the provided compose-file does not work either for me :/ |
@de-robat I promise I'll try to get your setup running locally soon, but in the meantime, would you try also running on OpenShift/Kubernetes, just to rule out possible issues specific to your environment? https://github.com/jaegertracing/jaeger-kubernetes Both do use Docker at the lower levels (but not compose!). |
I initialized the keyspace manually:
Then open the file and remove the unnecessary comment at the beginning (few lines). Then:
There was some problem with just running jaeger-cassandra-schema container but I don't remember what it was, maybe it works now. I didn't specify the versions so it was using "latest" which is something from early July (not the most recent). I'm testing jaeger on ECS now and things seem to work correctly there as well. Setting up Cassandra is the tricky part. |
Hey guys, just a quick update: Right now i'm seeing traces in the ui. So the setup seems to work, even though ...:5778/sampling?service=import-test still gives me What did we change? Well basically, we are using a docker configured network, and our jager-agents port bindings were just wrong. All the communication happens via udp, so we needed to expose udp to get it running:
From here on out we'll work further to get a proper compose-file "production" ready. Thanks again for the support! |
done in #493 |
Just a quick note about the 404 response:
The collector responds to POST requests only, and that's why it's returning a 404. You'd need to run the following, to get a response:
|
Hello, first of all Kudos and Thanks for this awesome tool.
I fiddled around with the Standalone Setup and managed to get some traces up and running. Now needing more performance for my evaluation tests, i wanted to switch to the proper setup, containing a cassandra instead of the memory database.
What i'm trying to achieve is getting a Jaeger-Setup with one agent one collector a cassandra and the query interface up and running on one docker server. My plan is to finally set it all up as a Rancher-Catalog to deploy it to more serious environments, but right now i'm struggling to get it running in the first place.
Specs: Linux: Debian, Docker version 17.05.0-ce, build 89658be, jager versions 0.5.2, cassandra 3.11
starting point is the following docker compose
This still has some issues. First of all running it only successuflly starts cassandra and the agent at the first go. once the cassandra is up i run
ocker run -d --network=jaeger_jaeger jaegertracing/jaeger-cassandra-schema:0.5.2
to setup the keyspace as expected. After that i restart the collector and query container which will start up healthy now.i then run a little testscript that sends traces to the agent via the node jaeger-client. I verified that the udp packages are arriving on the machine the agent is running on.
The agent it self says that it had successfully connected the collector
Unfortunately i can't see any traces when i connect the ui. Therefore the api endpoint ...:16686/api/services rightfully yield:
Checking the service endpoint of the agent (...5778/sampling?service=import-test) gives me a suspicious message:
I just had a quick chat with @yurishkuro who helped me pinpoint the above mentioned until here and we agreed on me starting an issue to properly track any progress we can make in this regard.
I can't figure out any way to log more verbosely along the chain of involved components and thus i'm a little clueless where to look next what might be the problem. Any help would be much appreciated!
Ty in advance!
The text was updated successfully, but these errors were encountered: