Class SegmentStatsMonitor

java.lang.Object
org.apache.druid.java.util.metrics.AbstractMonitor
org.apache.druid.server.metrics.SegmentStatsMonitor
All Implemented Interfaces:
Monitor

public class SegmentStatsMonitor extends AbstractMonitor
An experimental monitor used to keep track of segment stats. Can only be used on a historical and cannot be used with lazy loading. It keeps track of the average number of rows in a segment and the distribution of segments according to rowCount.
  • Constructor Details

    • SegmentStatsMonitor

      @Inject public SegmentStatsMonitor(DruidServerConfig serverConfig, SegmentLoadDropHandler segmentLoadDropHandler, SegmentLoaderConfig segmentLoaderConfig)
      Constructor for this monitor. Will throw IllegalStateException if lazy load on start is set to true.
      Parameters:
      serverConfig -
      segmentLoadDropHandler -
      segmentLoaderConfig -
  • Method Details