-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
The metric jvm_memory_used_bytes transitioned to jvm_memory_bytes_used starting from a certain version of jmx_exporter? #909
Comments
use version: 0.16.0。jdk21. The presence of -1.0 in the expression jvm_memory_bytes_max{area="nonheap",} -1.0. why? |
@YANGJINJUE 0.16.0 shipped with the Prometheus I suggest you upgrade to the latest version 0.20.0 and adjust your dashboards. |
use: jmx_prometheus_javaagent-0.20.0.jar use: jdk21, error: Exception in thread "main" java.lang.reflect.InvocationTargetException |
We are also using 0.20.0 and it doesn't work with Java 21. There is no update of this issue since one month. Are you planing to fix it? |
typically happens if you have multiple versions of the jar somewhere in your classpath. The JVM is loading classes from different jars that mismatched/out of sync. |
@aestebangarcianavas can please elaborate? The code has been tested and works on...
|
For those confused by this: the Prometeus client_java library changed the name of the metrics from its 0.16 version to 1.0 version: https://github.com/prometheus/client_java/blob/main/docs/content/migration/simpleclient.md#jvm-metrics. You can consult the list of the changed names in the link above. |
use version: 0.16.0
The text was updated successfully, but these errors were encountered: