Package org.apache.hadoop.hbase.master
Interface MetricsMasterQuotaSource
- All Superinterfaces:
BaseSource
- All Known Implementing Classes:
MetricsMasterQuotaSourceImpl
A collection of exposed metrics for space quotas from the HBase Master.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic 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 TypeMethodDescriptionvoidincrementSnapshotObserverChoreTime(long time) Updates the metric tracking the amount of time taken by theSnapshotQuotaObserverChorewhich runs periodically.voidUpdates the metric tracking the amount of time taken by theSnapshotQuotaObserverChoreto compute the size of one snapshot, relative to the files referenced by the originating table.voidincrementSnapshotObserverSnapshotFetchTime(long time) Updates the metric tracking the amount of time taken by theSnapshotQuotaObserverChoreto fetch all snapshots.voidincrementSpaceQuotaObserverChoreTime(long time) Updates the metric tracking the amount of time taken by theQuotaObserverChorewhich runs periodically.voidupdateNumCurrentSpaceQuotaRegionSizeReports(long numCurrentRegionSizeReports) Updates the metric tracking the number of region size reports the master is currently retaining in memory.voidupdateNumNamespacesInSpaceQuotaViolation(long numNamespacesInViolation) Updates the metric tracking the number of namespaces the master has computed to be in violation of their space quota.voidupdateNumSpaceQuotas(long numSpaceQuotas) Updates the metric tracking the number of space quotas defined in the system.voidupdateNumTablesInSpaceQuotaViolation(long numTablesInViolation) Updates the metric tracking the number of tables the master has computed to be in violation of their space quota.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_JMX_CONTEXT
- See Also:
-
METRICS_DESCRIPTION
- See Also:
-
NUM_SPACE_QUOTAS_NAME
- See Also:
-
NUM_SPACE_QUOTAS_DESC
- See Also:
-
NUM_TABLES_QUOTA_VIOLATIONS_NAME
- See Also:
-
NUM_TABLES_QUOTA_VIOLATIONS_DESC
- See Also:
-
NUM_NS_QUOTA_VIOLATIONS_NAME
- See Also:
-
NUM_NS_QUOTA_VIOLATIONS_DESC
- See Also:
-
NUM_REGION_SIZE_REPORTS_NAME
- See Also:
-
NUM_REGION_SIZE_REPORTS_DESC
- See Also:
-
QUOTA_OBSERVER_CHORE_TIME_NAME
- See Also:
-
QUOTA_OBSERVER_CHORE_TIME_DESC
- See Also:
-
SNAPSHOT_OBSERVER_CHORE_TIME_NAME
- See Also:
-
SNAPSHOT_OBSERVER_CHORE_TIME_DESC
- See Also:
-
SNAPSHOT_OBSERVER_SIZE_COMPUTATION_TIME_NAME
- See Also:
-
SNAPSHOT_OBSERVER_SIZE_COMPUTATION_TIME_DESC
- See Also:
-
SNAPSHOT_OBSERVER_FETCH_TIME_NAME
- See Also:
-
SNAPSHOT_OBSERVER_FETCH_TIME_DESC
- See Also:
-
TABLE_QUOTA_USAGE_NAME
- See Also:
-
TABLE_QUOTA_USAGE_DESC
- See Also:
-
NS_QUOTA_USAGE_NAME
- See Also:
-
NS_QUOTA_USAGE_DESC
- See Also:
-
-
Method Details
-
updateNumSpaceQuotas
Updates the metric tracking the number of space quotas defined in the system.- Parameters:
numSpaceQuotas- The number of space quotas defined
-
updateNumTablesInSpaceQuotaViolation
Updates the metric tracking the number of tables the master has computed to be in violation of their space quota.- Parameters:
numTablesInViolation- The number of tables violating a space quota
-
updateNumNamespacesInSpaceQuotaViolation
Updates the metric tracking the number of namespaces the master has computed to be in violation of their space quota.- Parameters:
numNamespacesInViolation- The number of namespaces violating a space quota
-
updateNumCurrentSpaceQuotaRegionSizeReports
Updates the metric tracking the number of region size reports the master is currently retaining in memory.- Parameters:
numCurrentRegionSizeReports- The number of region size reports the master is holding in memory
-
incrementSpaceQuotaObserverChoreTime
Updates the metric tracking the amount of time taken by theQuotaObserverChorewhich runs periodically.- Parameters:
time- The execution time of the chore in milliseconds
-
incrementSnapshotObserverChoreTime
Updates the metric tracking the amount of time taken by theSnapshotQuotaObserverChorewhich runs periodically. -
incrementSnapshotObserverSnapshotComputationTime
Updates the metric tracking the amount of time taken by theSnapshotQuotaObserverChoreto compute the size of one snapshot, relative to the files referenced by the originating table. -
incrementSnapshotObserverSnapshotFetchTime
Updates the metric tracking the amount of time taken by theSnapshotQuotaObserverChoreto fetch all snapshots.
-