Help with java auto instrumentation in GKE #8526
Replies: 2 comments 4 replies
-
hi @sreejesh-radhakrishnan-db! can you try using the OpenTelemetry Java agent without using the OpenTelemetry Operator? that will help narrow down whether your issue is with the Java agent (this repo) or with the Operator (other repo) |
Beta Was this translation helpful? Give feedback.
-
@trask please find the finding below To add this also resulted in same error: A ) I added agent to my image and tried to start (used 1.26 - opentelemetry-javaagent.jar downloaded from the release page added to my base image) this time as well I got same error as below Picked up JAVA_TOOL_OPTIONS: -javaagent:/app/javaagent.jar Note: I am using alpine for base JRE image - does optl jar has any libc dependency at all? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
My limited knowledge on this subject hence trying my luck here.
I am on GKE
I am following the https://opentelemetry.io/docs/k8s-operator/automatic/#create-an-opentelemetry-collector-optional , I could see Operator, Collector up and running in my cluster and I annotated the container too. Still no trace/metric/log is been pushed to collector log nor on application container log or to cloud trace.
I can see the INIT CONTAINER IS starting up and there is only one command " cp /javaagent.jar /otel-auto-instrumentation/javaagent.jar"
My Q - should I have to explicitly change the java command line for the application to use this jar? if so how can I do that?
Should I add in my deployment something like this
env:
value: /otel-auto-instrumentation/javaagent.jar
If we have to start up agent, then how can we do it? as the INIT container is copying the file to a location which is ROOT and we only allow NONROOT users in our deployment.
I was advised this should be taken care of if in K8s, but my Q is if its taken care of, how/who is enabling the agent in my POD and how it data exported? (open-telemetry/opentelemetry-operator#1744) any help would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions