You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The JMX Exporter Java agent's use of standard Java logging (JUL). This causes various issues due to initialization/classloader issues because a Java agent uses a different classloader/classpath than an application.
Migrating all code using standard Java logging (JUL) to the native implementation will resolve these issues since the code is packaged in the Java agent.
This makes integration into applications that use a custom JUL LogManager/logging implementation a non-issue.
Cons
The native logging solution, which is currently only used for development/developer debugging, is very limited.
all or nothing
only logs to System.out
doesn't log to a file
doesn't have per class configuration
only a single logging level
is not dynamic
In most scenarios, JMX Exporter logging is typically only used when there are issues with the exporter. We may be able to solve some of the issue.
The text was updated successfully, but these errors were encountered:
Issues
The JMX Exporter Java agent's use of standard Java logging (JUL). This causes various issues due to initialization/classloader issues because a Java agent uses a different classloader/classpath than an application.
Related Issues
JMX Exporter Java agent issues...
... and GlashFish issues...
Investigate using a native logging implementation
The JMX Exporter already has a native logging implementation that is used for development/developer debugging.
https://github.com/prometheus/jmx_exporter/tree/main/collector/src/main/java/io/prometheus/jmx/logger
Pros
Migrating all code using standard Java logging (JUL) to the native implementation will resolve these issues since the code is packaged in the Java agent.
This makes integration into applications that use a custom JUL
LogManager
/logging implementation a non-issue.Cons
The native logging solution, which is currently only used for development/developer debugging, is very limited.
System.out
In most scenarios, JMX Exporter logging is typically only used when there are issues with the exporter. We may be able to solve some of the issue.
The text was updated successfully, but these errors were encountered: