Package org.apache.druid.server.metrics
Class SegmentStatsMonitor
java.lang.Object
org.apache.druid.java.util.metrics.AbstractMonitor
org.apache.druid.server.metrics.SegmentStatsMonitor
- All Implemented Interfaces:
Monitor
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 Summary
ConstructorsConstructorDescriptionSegmentStatsMonitor(DruidServerConfig serverConfig, SegmentLoadDropHandler segmentLoadDropHandler, SegmentLoaderConfig segmentLoaderConfig) Constructor for this monitor. -
Method Summary
Methods inherited from class org.apache.druid.java.util.metrics.AbstractMonitor
isStarted, monitor, start, stop
-
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
-
doMonitor
- Specified by:
doMonitorin classAbstractMonitor
-