All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.prometheus.client.hotspot.DefaultExports Maven / Gradle / Ivy

package io.prometheus.client.hotspot;

/**
 * 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: *

 * {@code
 *   DefaultExports.initialize();
 * }
 * 
*/ public class DefaultExports { private static boolean initialized = false; /** * Register the default Hotspot collectors. */ public static synchronized void initialize() { if (!initialized) { new StandardExports().register(); new MemoryPoolsExports().register(); new GarbageCollectorExports().register(); new ThreadExports().register(); new ClassLoadingExports().register(); new VersionInfoExports().register(); initialized = true; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy