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
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
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
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
incrementSnapshotObserverChoreTime
(long time) Updates the metric tracking the amount of time taken by theSnapshotQuotaObserverChore
which runs periodically.void
Updates the metric tracking the amount of time taken by theSnapshotQuotaObserverChore
to compute the size of one snapshot, relative to the files referenced by the originating table.void
incrementSnapshotObserverSnapshotFetchTime
(long time) Updates the metric tracking the amount of time taken by theSnapshotQuotaObserverChore
to fetch all snapshots.void
incrementSpaceQuotaObserverChoreTime
(long time) Updates the metric tracking the amount of time taken by theQuotaObserverChore
which runs periodically.void
updateNumCurrentSpaceQuotaRegionSizeReports
(long numCurrentRegionSizeReports) Updates the metric tracking the number of region size reports the master is currently retaining in memory.void
updateNumNamespacesInSpaceQuotaViolation
(long numNamespacesInViolation) Updates the metric tracking the number of namespaces the master has computed to be in violation of their space quota.void
updateNumSpaceQuotas
(long numSpaceQuotas) Updates the metric tracking the number of space quotas defined in the system.void
updateNumTablesInSpaceQuotaViolation
(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 theQuotaObserverChore
which runs periodically.- Parameters:
time
- The execution time of the chore in milliseconds
-
incrementSnapshotObserverChoreTime
Updates the metric tracking the amount of time taken by theSnapshotQuotaObserverChore
which runs periodically. -
incrementSnapshotObserverSnapshotComputationTime
Updates the metric tracking the amount of time taken by theSnapshotQuotaObserverChore
to 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 theSnapshotQuotaObserverChore
to fetch all snapshots.
-