Package io.prometheus.client.hotspot
Class DefaultExports
java.lang.Object
io.prometheus.client.hotspot.DefaultExports
Registers the default Hotspot collectors.
This is intended to avoid users having to add in new registrations every time a new exporter is added.
Example usage:
DefaultExports.initialize();
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Register the default Hotspot collectors with the default registry.static void
register
(CollectorRegistry registry) Register the default Hotspot collectors with the given registry.
-
Field Details
-
initialized
private static boolean initialized
-
-
Constructor Details
-
DefaultExports
public DefaultExports()
-
-
Method Details
-
initialize
public static void initialize()Register the default Hotspot collectors with the default registry. It is safe to call this method multiple times, as this will only register the collectors once. -
register
Register the default Hotspot collectors with the given registry.
-