Interface MetricsRegionServerQuotaSource
- All Superinterfaces:
BaseSource
- All Known Implementing Classes:
MetricsRegionServerQuotaSourceImpl
A collection of exposed metrics for space quotas from an HBase RegionServer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME -
Method Summary
Modifier and TypeMethodDescriptionvoidincrementNumRegionSizeReportsSent(long numReportsSent) Updates the metric tracking how many region size reports were sent from this RegionServer to the Master.voidincrementRegionSizeReportingChoreTime(long time) Updates the metric tracking how much time was spent sending region size reports to the Master by the RegionSizeReportingChore.voidUpdates the metric tracking how much time was spent scanning the filesystem to compute the size of each region hosted by this RegionServer.voidincrementSpaceQuotaRefresherChoreTime(long time) Updates the metric tracking how much time was spent updating the RegionServer with the latest information on space quotas from thehbase:quotatable.voidupdateNumTablesInSpaceQuotaViolation(long tablesInViolation) Updates the metric tracking how many tables this RegionServer has marked as in violation of their space quota.voidupdateNumTableSpaceQuotaSnapshots(long numSnapshots) Updates the metric tracking how many tables this RegionServer has receivedSpaceQuotaSnapshots for.Methods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
-
Field Details
-
METRICS_NAME
- See Also:
-
METRICS_CONTEXT
- See Also:
-
METRICS_DESCRIPTION
- See Also:
-
METRICS_JMX_CONTEXT
- See Also:
-
NUM_TABLES_IN_VIOLATION_NAME
- See Also:
-
NUM_SPACE_SNAPSHOTS_RECEIVED_NAME
- See Also:
-
FILE_SYSTEM_UTILIZATION_CHORE_TIME
- See Also:
-
SPACE_QUOTA_REFRESHER_CHORE_TIME
- See Also:
-
NUM_REGION_SIZE_REPORT_NAME
- See Also:
-
REGION_SIZE_REPORTING_CHORE_TIME_NAME
- See Also:
-
-
Method Details
-
updateNumTablesInSpaceQuotaViolation
Updates the metric tracking how many tables this RegionServer has marked as in violation of their space quota. -
updateNumTableSpaceQuotaSnapshots
Updates the metric tracking how many tables this RegionServer has receivedSpaceQuotaSnapshots for.- Parameters:
numSnapshots- The number ofSpaceQuotaSnapshots received from the Master.
-
incrementSpaceQuotaFileSystemScannerChoreTime
Updates the metric tracking how much time was spent scanning the filesystem to compute the size of each region hosted by this RegionServer.- Parameters:
time- The execution time of the chore in milliseconds.
-
incrementSpaceQuotaRefresherChoreTime
Updates the metric tracking how much time was spent updating the RegionServer with the latest information on space quotas from thehbase:quotatable.- Parameters:
time- The execution time of the chore in milliseconds.
-
incrementNumRegionSizeReportsSent
Updates the metric tracking how many region size reports were sent from this RegionServer to the Master. These reports contain information on the size of each Region hosted locally.- Parameters:
numReportsSent- The number of region size reports sent
-
incrementRegionSizeReportingChoreTime
Updates the metric tracking how much time was spent sending region size reports to the Master by the RegionSizeReportingChore.- Parameters:
time- The execution time in milliseconds.
-