Closed Alexc0007 closed 4 years ago
Could you try to qualify the Jaeger Collector's hostname with the namespace it's deployed on? Like, jaeger-collector.default:14250
. Ideally, you'd use the DNS protocol + headless service, so that your agent connections get load balanced across the collectors: dns:///jaeger-collector-headless.default:14250
hi , thank u for trying to help! ill try that and update whats happening
@jpkrohling , i followed your advice and added the namespace of the collector to the deployment... the errors seem to have stopped... however, the only traces i still see from jaeger are from the service jaeger-query why dont i see traces of other services? what am i missing here?
Hard to say without further information. Have you checked the troubleshooting guide? https://www.jaegertracing.io/docs/1.16/troubleshooting/
Hi, the troubleshooting guide isnt informative enough... when i look at my agent logs, they dont seem to write anything... so as the collector logs...
this is all the info i see on the agent's log:
2020/01/21 09:28:35 maxprocs: Leaving GOMAXPROCS=2: CPU quota undefined
{"level":"info","ts":1579598915.8331347,"caller":"flags/service.go:115","msg":"Mounting metrics handler on admin server","route":"/metrics"}
{"level":"info","ts":1579598915.8337948,"caller":"flags/admin.go:108","msg":"Mounting health check on admin server","route":"/"}
{"level":"info","ts":1579598915.8340962,"caller":"flags/admin.go:114","msg":"Starting admin HTTP server","http-port":14271}
{"level":"info","ts":1579598915.8341193,"caller":"flags/admin.go:100","msg":"Admin server started","http-port":14271,"health-status":"unavailable"}
{"level":"warn","ts":1579598915.834641,"caller":"tchannel/flags.go:72","msg":"Using deprecated configuration","option":"collector.host-port"}
{"level":"info","ts":1579598915.8363159,"caller":"grpc/builder.go:65","msg":"Agent requested insecure grpc connection to collector(s)"}
{"level":"info","ts":1579598915.8363705,"caller":"grpc/clientconn.go:245","msg":"parsed scheme: \"\"","system":"grpc","grpc_log":true}
{"level":"info","ts":1579598915.8364089,"caller":"grpc/clientconn.go:251","msg":"scheme \"\" not registered, fallback to default scheme","system":"grpc","grpc_log":true}
{"level":"info","ts":1579598915.8364532,"caller":"grpc/resolver_conn_wrapper.go:178","msg":"ccResolverWrapper: sending update to cc: {[{jaeger-collector.observability:14250 0 <nil>}] <nil>}","system":"grpc","grpc_log":true}
{"level":"info","ts":1579598915.836476,"caller":"grpc/clientconn.go:659","msg":"ClientConn switching balancer to \"round_robin\"","system":"grpc","grpc_log":true}
{"level":"info","ts":1579598915.8365076,"caller":"base/balancer.go:83","msg":"base.baseBalancer: got new ClientConn state: {{[{jaeger-collector.observability:14250 0 <nil>}] <nil>} <nil>}","system":"grpc","grpc_log":true}
{"level":"info","ts":1579598915.8428907,"caller":"base/balancer.go:140","msg":"base.baseBalancer: handle SubConn state change: 0xc000216eb0, CONNECTING","system":"grpc","grpc_log":true}
{"level":"info","ts":1579598915.847945,"caller":"agent/main.go:75","msg":"Starting agent"}
{"level":"info","ts":1579598915.8480184,"caller":"healthcheck/handler.go:128","msg":"Health Check state change","status":"ready"}
{"level":"info","ts":1579598915.8483636,"caller":"app/agent.go:69","msg":"Starting jaeger-agent HTTP server","http-port":5778}
{"level":"info","ts":1579598925.8471503,"caller":"base/balancer.go:140","msg":"base.baseBalancer: handle SubConn state change: 0xc000216eb0, READY","system":"grpc","grpc_log":true}
{"level":"info","ts":1579598925.8472536,"caller":"roundrobin/roundrobin.go:50","msg":"roundrobinPicker: newPicker called with readySCs: map[{jaeger-collector.observability:14250 0 <nil>}:0xc000216eb0]","system":"grpc","grpc_log":true}
the only traces i do see on the query are traces of jaeger-query... it seems like there is a sidecar agent running in the jaeger-query pod...
i also tried to copy this sidecar agent to a different service, however it doesnt report anything... on its logs, i see the same output as i reported above.
what am i missing?
i also tried to copy this sidecar agent to a different service, however it doesnt report anything... on its logs, i see the same output as i reported above.
How are your applications instrumented? Can you turn on the client logs as well (see "Use the logging reporter" in the troubleshooting guide)? If you can't see spans being reported by your application, that might explain why the agent isn't logging the span batches its receiving ;-)
after reading a bit more about jaeger, ill ask just to be sure... the clients have to be implemented inside my applications? cant the agents just collect data? if this is the case, then i have no clients.... only agents deployed...
another question in case the above is true, even if an agent is deployed as a sidecar, it cant serve as a client?
after reading a bit more about jaeger, ill ask just to be sure...
You might want to check the OpenTracing tutorial to have a better understanding of how it all fits together. The same basic principles apply to most of the modern distributed tracing tools, including Jaeger.
the clients have to be implemented inside my applications?
Typically, yes. You'd instrument your code with an API like OpenTracing, and plug a concrete client (aka tracer), which will send this data "somewhere". In Jaeger's case, this "somewhere" is typically the local agent.
You can use some libraries that automatically instrument frameworks and platforms, such as Quarkus, Spring Boot, and so on.
cant the agents just collect data?
Jaeger Agents are "passive", in that they just receive data that is reported by the clients.
Assuming this is resolved and closing. Please reopen if needed.
Requirement - what kind of business use case are you trying to solve?
Hi Everyone , im trying to setup jaeger to trace networking on my kubernetes cluster. my cluster is an EKS(AWS) managed by Ocean(Spotinst) i installed jaeger as production build and agents are installed in daemonset strategy from helm: https://jaegertracing.github.io/helm-charts/
the issue im facing is that my agents are unable to send data to the collectors. both the daemonset agents and an agent i tried to setup as a sidecar to a pod.
agent configuration looks like this:
the error i see in the agent logs is looking like this:
if anyone has any ideas why this might be happening and what is the cause, ill be happy for an explanation. thanks ahead