Interface MetricsRegionServerQuotaSource
- All Superinterfaces:
BaseSource
- All Known Implementing Classes:
MetricsRegionServerQuotaSourceImpl
A collection of exposed metrics for space quotas from an HBase RegionServer.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
-
Method Summary
Modifier and TypeMethodDescriptionvoid
incrementNumRegionSizeReportsSent
(long numReportsSent) Updates the metric tracking how many region size reports were sent from this RegionServer to the Master.void
incrementRegionSizeReportingChoreTime
(long time) Updates the metric tracking how much time was spent sending region size reports to the Master by the RegionSizeReportingChore.void
Updates the metric tracking how much time was spent scanning the filesystem to compute the size of each region hosted by this RegionServer.void
incrementSpaceQuotaRefresherChoreTime
(long time) Updates the metric tracking how much time was spent updating the RegionServer with the latest information on space quotas from thehbase:quota
table.void
updateNumTablesInSpaceQuotaViolation
(long tablesInViolation) Updates the metric tracking how many tables this RegionServer has marked as in violation of their space quota.void
updateNumTableSpaceQuotaSnapshots
(long numSnapshots) Updates the metric tracking how many tables this RegionServer has receivedSpaceQuotaSnapshot
s 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 receivedSpaceQuotaSnapshot
s for.- Parameters:
numSnapshots
- The number ofSpaceQuotaSnapshot
s 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:quota
table.- 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.
-