Class SegmentStatsMonitor

  • All Implemented Interfaces:
    org.apache.druid.java.util.metrics.Monitor

    public class SegmentStatsMonitor
    extends org.apache.druid.java.util.metrics.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 Detail

      • 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 Detail

      • doMonitor

        public boolean doMonitor​(org.apache.druid.java.util.emitter.service.ServiceEmitter emitter)
        Specified by:
        doMonitor in class org.apache.druid.java.util.metrics.AbstractMonitor