Class DefaultExports


  • public class DefaultExports
    extends Object
    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();
     
     
    • 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​(io.prometheus.client.CollectorRegistry registry)
        Register the default Hotspot collectors with the given registry.