Package org.apache.cassandra.metrics
Class CommitLogMetrics
java.lang.Object
org.apache.cassandra.metrics.CommitLogMetrics
Metrics for commit log
-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.codahale.metrics.Gauge<Long>Number of completed tasksstatic final MetricNameFactoryfinal com.codahale.metrics.MeterNumber and rate of oversized mutationscom.codahale.metrics.Gauge<Long>Number of pending taskscom.codahale.metrics.Gauge<Long>Current size used by all the commit log segmentsfinal com.codahale.metrics.TimerThe time spent waiting on CL sync; for Periodic this is only occurs when the sync is lagging its sync intervalfinal com.codahale.metrics.TimerTime spent actually flushing the contents of a buffer to diskfinal com.codahale.metrics.TimerTime spent waiting for a CLS to be allocated - under normal conditions this should be zero -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattach(AbstractCommitLogService service, AbstractCommitLogSegmentManager segmentManager)
-
Field Details
-
factory
-
completedTasks
Number of completed tasks -
pendingTasks
Number of pending tasks -
totalCommitLogSize
Current size used by all the commit log segments -
waitingOnSegmentAllocation
public final com.codahale.metrics.Timer waitingOnSegmentAllocationTime spent waiting for a CLS to be allocated - under normal conditions this should be zero -
waitingOnCommit
public final com.codahale.metrics.Timer waitingOnCommitThe time spent waiting on CL sync; for Periodic this is only occurs when the sync is lagging its sync interval -
waitingOnFlush
public final com.codahale.metrics.Timer waitingOnFlushTime spent actually flushing the contents of a buffer to disk -
oversizedMutations
public final com.codahale.metrics.Meter oversizedMutationsNumber and rate of oversized mutations
-
-
Constructor Details
-
CommitLogMetrics
public CommitLogMetrics()
-
-
Method Details
-
attach
public void attach(AbstractCommitLogService service, AbstractCommitLogSegmentManager segmentManager)
-