-
Notifications
You must be signed in to change notification settings - Fork 858
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
Otel Java agent not exporting System.*, process.*, tomcat.* #12227
Comments
Have a look at https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/tag/v2.0.0 For 2.x many metrics that were under
imo these flags don't exist |
Thanks for reply... I am not using actuator/micrometer. I am looking for metrics apart from JVM under I have gone through doc, it says java-agent automatically support many metrics just by setting ENV variable. Variable name you are asking comes from java-agent and doc, thought if we need to enable if not by default Note: if I switch to old otel-java-agent.jar(1.28.0) I see all the other metrics. |
For Tomcat, when capturing metrics with JMX Insight, you need to set Also, the non stable JVM runtime metrics are only enabled when |
TOMCAT: Update
May be you can correct me, Still I could not find the metrics, here is my docker source code -
|
To reiterate most likely the metrics you see with the 1.x version of the agent come from spring-boot-actuator/micrometer. 1.x version of the agent picks these metrics up and emits them otel metrics. The instrumentations that do this are disable by default in the 2.x version of the agent. Try using |
This has been automatically marked as stale because it has been marked as needing author feedback and has not had any activity for 7 days. It will be closed automatically if there is no response from the author within 7 additional days from this comment. |
Describe the bug
I setup a project to export metrics to otel-collector via java agent but only certain metrics are being sent.
Not exporting:
here is my below configuration
Steps to reproduce
https://github.com/rapar8/opentelemetry-java-agent
Dcoker compose up
Expected behavior
it should export "process.", "system."
Actual behavior
only produce
Javaagent or library instrumentation version
2.7.0
Environment
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:5555
- OTEL_EXPORTER_OTLP_PROTOCOL=grpc
- OTEL_IMR_EXPORT_INTERVAL=1000
- OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED=true
- OTEL_INSTRUMENTATION_HTTP_CLIENT_EMIT_EXPERIMENTAL_TELEMETRY=true
- OTEL_INSTRUMENTATION_HTTP_SERVER_EMIT_EXPERIMENTAL_TELEMETRY=true
- OTEL_INSTRUMENTATION_JVM_METRICS_ENABLED=true
- OTEL_INSTRUMENTATION_PROCESS_METRICS_ENABLED=true
- OTEL_INSTRUMENTATION_RUNTIME_METRICS_ENABLED=true
- OTEL_INSTRUMENTATION_SYSTEM_METRICS_ENABLED=true
- OTEL_INSTRUMENTATION_TOMCAT_ENABLED=true
- OTEL_JAVAAGENT_DEBUG=true
- OTEL_JAVAAGENT_ENABLED=true
- OTEL_JAVAAGENT_INSTRUMENTATION_RUNTIME_METRICS_ENABLED=true
- OTEL_JAVAAGENT_LOGGING=application
- OTEL_LOGS_EXPORTER=none
- OTEL_LOG_LEVEL=trace
- OTEL_METRICS_EXPORTER=logging
- OTEL_METRIC_EXPORT_INTERVAL=1000
- OTEL_RESOURCE_ATTRIBUTES="job=job,application=omsvclyr-d,service.name=service-layer,service.version=1.0,deployment.environment=development"
- OTEL_RESOURCE_PROVIDERS_GCP_ENABLED=true
- OTEL_SDK_ENABLED=true
- OTEL_SERVICE_NAME=omsvclyr-d
- OTEL_TRACES_EXPORTER=none
- OTEL_TRACES_SAMPLER=always_on
Additional context
If I change the otel-java-agent version to 1.28.0. it produce
"process.*" "system.*"
metrics.The text was updated successfully, but these errors were encountered: