Class Monitors

java.lang.Object
org.apache.druid.java.util.metrics.Monitors

public class Monitors extends Object
  • Constructor Details

    • Monitors

      public Monitors()
  • Method Details

    • 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 feed FeedDefiningMonitor.DEFAULT_METRICS_FEED See: 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, JvmCpuMonitor and JvmThreadsMonitor (this list may change in any future release of this library, including a minor release).
      Parameters:
      dimensions - common dimensions to configure the JVM monitor with
      feed - feed for all emitted events
      Returns:
      a universally useful JVM-wide monitor
    • and

      public static Monitor and(Monitor... monitors)