Java client doesn't show as service in Jaeger UI #2908
Replies: 3 comments 1 reply
-
If those metrics are absent it means that the collector is not receiving any traces. I would check your agent metrics next to see if they are receiving spans and forwarding them correctly. This guide walks through each component and metrics you can check to make sure that spans are forwarding correctly: https://medium.com/jaegertracing/where-did-all-my-spans-go-a-guide-to-diagnosing-dropped-spans-in-jaeger-10d9697f8182 |
Beta Was this translation helpful? Give feedback.
-
Were you able to ascertain whether jaeger-agent was receiving spans from
your application from those metrics?
You can find the ports that need to be exposed by the collector here:
https://www.jaegertracing.io/docs/1.22/deployment/#collectors.
Typically, the agent sends spans to jaeger-collector's port *14250* (gRPC).
Albert
…On Sun, Mar 28, 2021 at 2:42 AM Steven ***@***.***> wrote:
Hello @joe-elliott <https://github.com/joe-elliott> , thanks for the
answer,
I have read your article and I think the problem is as what you said that
the Jaeger Collector not receiving any traces since I can't find anything
related to jaeger_collector from Prometheus (I did find things that are
related to Agent, Inprocess Client, etc.)
Although I can't seem to figure out the way to fix it, is there a port
that needs to be exposed, env vars needed, or maybe my Java code itself is
wrong?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2908 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGK2LHVJVXPE2T2RI6POBATTFX4FJANCNFSM4Z34OJUA>
.
|
Beta Was this translation helpful? Give feedback.
-
Case resolved, turns out I only forgot to call span.finish() on my code. a quite useful article about java example that I used is this https://www.scalyr.com/blog/jaeger-tracing-tutorial/ @albertteoh thanks for the help anyways, it has been opened as a k8s service. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am currently trying to integrate my existing java web app (I am not using springboot) w/ Jaeger in the kubernetes cluster
I have already succeeded in deploying Jaeger UI and the sidecar pod but the problem is that it seems Jaeger UI doesn't show my java app as a service, w/ that I can't see any metrics from it.
For my kubernetes manifests for jaeger, I'm using as what is already available in here
CRD:
https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/crds/jaegertracing.io_jaegers_crd.yaml
RBAC:
https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/service_account.yaml
https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/role.yaml
https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/role_binding.yaml
Jaeger Operator:
https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/operator.yaml
For my java settings, I followed this documentation and this official sample and added these line of code into my
main
function for debuggingBut it doesn't show
"someservicename"
in the jaeger UI in hereFYI: my app is running on port 8087 , and I have not added any environment variables
I have also followed troubleshooting guide in https://www.jaegertracing.io/docs/1.17/troubleshooting/#check-the-metrics-endpoint
but the
/metrics
endpoint didn't return any of the 4 key:value pairs (jaeger_collector_spans_received
, etc.)Beta Was this translation helpful? Give feedback.
All reactions