Package io.prometheus.client.hotspot
Class DefaultExports
- java.lang.Object
-
- io.prometheus.client.hotspot.DefaultExports
-
public class DefaultExports extends java.lang.ObjectRegisters 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 Modifier and Type Field Description private static booleaninitialized
-
Constructor Summary
Constructors Constructor Description DefaultExports()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidinitialize()Register the default Hotspot collectors with the default registry.static voidregister(CollectorRegistry registry)Register the default Hotspot collectors with the given registry.
-
-
-
Method Detail
-
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
public static void register(CollectorRegistry registry)
Register the default Hotspot collectors with the given registry.
-
-