Class Monitors
- java.lang.Object
-
- org.apache.druid.java.util.metrics.Monitors
-
public class Monitors extends Object
-
-
Constructor Summary
Constructors Constructor Description Monitors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Monitorand(Monitor... monitors)static MonitorcreateCompoundJvmMonitor(Map<String,String[]> dimensions)Creates a JVM monitor, configured with the given dimensions, that gathers all currently available JVM-wide monitors.static MonitorcreateCompoundJvmMonitor(Map<String,String[]> dimensions, String feed)Creates a JVM monitor, configured with the given dimensions, that gathers all currently available JVM-wide monitors:JvmMonitor,JvmCpuMonitorandJvmThreadsMonitor(this list may change in any future release of this library, including a minor release).
-
-
-
Method Detail
-
createCompoundJvmMonitor
public static Monitor createCompoundJvmMonitor(Map<String,String[]> dimensions)
Creates a JVM monitor, configured with the given dimensions, that gathers all currently available JVM-wide monitors. Emitted events have default feedFeedDefiningMonitor.DEFAULT_METRICS_FEEDSee:createCompoundJvmMonitor(Map, String)- Parameters:
dimensions- common dimensions to configure the JVM monitor with- Returns:
- a universally useful JVM-wide monitor
-
createCompoundJvmMonitor
public static Monitor createCompoundJvmMonitor(Map<String,String[]> dimensions, String feed)
Creates a JVM monitor, configured with the given dimensions, that gathers all currently available JVM-wide monitors:JvmMonitor,JvmCpuMonitorandJvmThreadsMonitor(this list may change in any future release of this library, including a minor release).- Parameters:
dimensions- common dimensions to configure the JVM monitor withfeed- feed for all emitted events- Returns:
- a universally useful JVM-wide monitor
-
-