-
Notifications
You must be signed in to change notification settings - Fork 881
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
Invalid unit for process.runtime.jvm.system.cpu.load_1m #9492
Comments
OK, interesting. I was referring to this page with |
Hi @trask, I agree that the unit is following the new semantic convention. However, the metric name is not updated, and it follows the old semantic conventions. So is there still a mismatch between the metric name and the unit? New semantic conventions: Old semantic conventions: |
Hey @mviitane , We're planning to include all the changes in the JVM metrics semconv in the 2.0 release; that includes changing the names to the ones you can currently see in the semconv repo. |
makes sense to me |
I'm fine either way. |
@mviitane Is it possible to try with the 2.0.0 release and let us know if the current values are now what you expect and are aligned with the semconv? Thank you. |
@breedx-splk I'm trying to update adservice (in the OTel Demo App) to 2.0.0 release, and I get it building just fine, but it fails to export any signal and outputs:
It looks like it tries to export http to port 4317. The Collector in the Demo App expects http to port 4318, and grpc to 4317. The Java exporter should default to http 4318, right? |
As I understand, the previous OTel Java exporter, by default, sent gRPC to 4317. The new version 2.0.0, by default, exports HTTP but uses the same port 4317. |
hi @mviitane! could this be coming from here? |
Thank you @trask! That was it. My mistake, I didn't see this. I'll fix the Otel Demo App. @breedx-splk, I verified the jvm cpu metrics incl. units, and they were as expected. I'll close this issue. |
Describe the bug
I’m running OpenTelemetry demo application with the latest java agent 1.30.0.
The unit for
process.runtime.jvm.system.cpu.load_1m
seems wrong.Steps to reproduce
First update the java agent version for the demo app.
open-telemetry/opentelemetry-demo#1132
Configure a logging exporter for the Collector like this:
Start the demo app.
Check logs:
$ docker compose logs otelcol | grep -A 8 -B 2 process.runtime.jvm.system.cpu.load_1m
Expected behavior
It should be like this:
Unit: 1
Actual behavior
This is what I saw:
Unit: {run_queue_item}
Javaagent or library instrumentation version
v1.30.0
Environment
Docker desktop on macOS
Additional context
No response
The text was updated successfully, but these errors were encountered: