Package org.apache.hadoop.hbase.master
Interface MetricsMasterSource
- All Superinterfaces:
BaseSource
- All Known Implementing Classes:
MetricsMasterSourceImpl
Interface that classes that expose metrics about the master will implement.
-
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
The context metrics will be under.static final String
Descriptionstatic final String
The name of the metrics context that metrics will be under in jmxstatic final String
The name of the metricsstatic 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 TypeMethodDescriptionReturnsOperationMetrics
containing common metrics for server crash operationvoid
incReadRequests
(long inc) Increment the number of read requests the cluster has seen.void
incRequests
(long inc) Increment the number of requests the cluster has seen.void
incWriteRequests
(long inc) Increment the number of write requests the cluster has seen.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
The name of the metrics- See Also:
-
METRICS_CONTEXT
The context metrics will be under.- See Also:
-
METRICS_JMX_CONTEXT
The name of the metrics context that metrics will be under in jmx- See Also:
-
METRICS_DESCRIPTION
Description- See Also:
-
MASTER_ACTIVE_TIME_NAME
- See Also:
-
MASTER_START_TIME_NAME
- See Also:
-
MASTER_FINISHED_INITIALIZATION_TIME_NAME
- See Also:
-
AVERAGE_LOAD_NAME
- See Also:
-
LIVE_REGION_SERVERS_NAME
- See Also:
-
DEAD_REGION_SERVERS_NAME
- See Also:
-
DRAINING_REGION_SERVER_NAME
- See Also:
-
NUM_REGION_SERVERS_NAME
- See Also:
-
NUM_DEAD_REGION_SERVERS_NAME
- See Also:
-
NUM_DRAINING_REGION_SERVERS_NAME
- See Also:
-
ZOOKEEPER_QUORUM_NAME
- See Also:
-
SERVER_NAME_NAME
- See Also:
-
CLUSTER_ID_NAME
- See Also:
-
IS_ACTIVE_MASTER_NAME
- See Also:
-
SPLIT_PLAN_COUNT_NAME
- See Also:
-
MERGE_PLAN_COUNT_NAME
- See Also:
-
ONLINE_REGION_COUNT_NAME
- See Also:
-
OFFLINE_REGION_COUNT_NAME
- See Also:
-
CLUSTER_REQUESTS_NAME
- See Also:
-
CLUSTER_READ_REQUESTS_NAME
- See Also:
-
CLUSTER_WRITE_REQUESTS_NAME
- See Also:
-
OLD_WAL_DIR_SIZE_NAME
- See Also:
-
MASTER_ACTIVE_TIME_DESC
- See Also:
-
MASTER_START_TIME_DESC
- See Also:
-
MASTER_FINISHED_INITIALIZATION_TIME_DESC
- See Also:
-
AVERAGE_LOAD_DESC
- See Also:
-
LIVE_REGION_SERVERS_DESC
- See Also:
-
NUMBER_OF_REGION_SERVERS_DESC
- See Also:
-
DEAD_REGION_SERVERS_DESC
- See Also:
-
NUMBER_OF_DEAD_REGION_SERVERS_DESC
- See Also:
-
DRAINING_REGION_SERVER_DESC
- See Also:
-
NUMBER_OF_DRAINING_REGION_SERVERS_DESC
- See Also:
-
ZOOKEEPER_QUORUM_DESC
- See Also:
-
SERVER_NAME_DESC
- See Also:
-
CLUSTER_ID_DESC
- See Also:
-
IS_ACTIVE_MASTER_DESC
- See Also:
-
SPLIT_PLAN_COUNT_DESC
- See Also:
-
MERGE_PLAN_COUNT_DESC
- See Also:
-
ONLINE_REGION_COUNT_DESC
- See Also:
-
OFFLINE_REGION_COUNT_DESC
- See Also:
-
SERVER_CRASH_METRIC_PREFIX
- See Also:
-
OLD_WAL_DIR_SIZE_DESC
- See Also:
-
-
Method Details
-
incRequests
Increment the number of requests the cluster has seen.- Parameters:
inc
- Ammount to increment the total by.
-
incReadRequests
Increment the number of read requests the cluster has seen.- Parameters:
inc
- Ammount to increment the total by.
-
incWriteRequests
Increment the number of write requests the cluster has seen.- Parameters:
inc
- Ammount to increment the total by.
-
getServerCrashMetrics
ReturnsOperationMetrics
containing common metrics for server crash operation
-