Interface MetricsZooKeeperSource
- All Superinterfaces:
BaseSource
- All Known Implementing Classes:
MetricsZooKeeperSourceImpl
Interface of the source that will export metrics about the ZooKeeper.
-
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
The name of the metrics context that metrics will be under.static final String
Descriptionstatic final String
The name of the metrics context that metrics will be under in jmx.static 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
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Increment the count of failed ops due to AUTHFAILED Exception.void
Increment the count of failed ops due to a CONNECTIONLOSS Exception.void
Increment the count of failed ops due to a DATAINCONSISTENCY Exception.void
Increment the count of failed ops due to INVALIDACL Exception.void
Increment the count of failed ops due to NOAUTH Exception.void
Increment the count of failed ops due to an OPERATIONTIMEOUT Exception.void
Increment the count of failed ops due to RUNTIMEINCONSISTENCY Exception.void
Increment the count of failed ops due to a SESSIONEXPIRED Exception.void
Increment the count of failed ops due to a SYSTEMERROR Exception.void
Record the total number of failed ZooKeeper API calls.void
recordReadOperationLatency
(long latency) Record the latency incurred for read operations.void
recordSyncOperationLatency
(long latency) Record the latency incurred for sync operations.void
recordWriteOperationLatency
(long latency) Record the latency incurred for write operations.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 name of the metrics context that metrics will be under.- See Also:
-
METRICS_DESCRIPTION
Description- See Also:
-
METRICS_JMX_CONTEXT
The name of the metrics context that metrics will be under in jmx.- See Also:
-
EXCEPTION_AUTHFAILED
- See Also:
-
EXCEPTION_AUTHFAILED_DESC
- See Also:
-
EXCEPTION_CONNECTIONLOSS
- See Also:
-
EXCEPTION_CONNECTIONLOSS_DESC
- See Also:
-
EXCEPTION_DATAINCONSISTENCY
- See Also:
-
EXCEPTION_DATAINCONSISTENCY_DESC
- See Also:
-
EXCEPTION_INVALIDACL
- See Also:
-
EXCEPTION_INVALIDACL_DESC
- See Also:
-
EXCEPTION_NOAUTH
- See Also:
-
EXCEPTION_NOAUTH_DESC
- See Also:
-
EXCEPTION_OPERATIONTIMEOUT
- See Also:
-
EXCEPTION_OPERATIONTIMEOUT_DESC
- See Also:
-
EXCEPTION_RUNTIMEINCONSISTENCY
- See Also:
-
EXCEPTION_RUNTIMEINCONSISTENCY_DESC
- See Also:
-
EXCEPTION_SESSIONEXPIRED
- See Also:
-
EXCEPTION_SESSIONEXPIRED_DESC
- See Also:
-
EXCEPTION_SYSTEMERROR
- See Also:
-
EXCEPTION_SYSTEMERROR_DESC
- See Also:
-
TOTAL_FAILED_ZK_CALLS
- See Also:
-
TOTAL_FAILED_ZK_CALLS_DESC
- See Also:
-
READ_OPERATION_LATENCY_NAME
- See Also:
-
READ_OPERATION_LATENCY_DESC
- See Also:
-
WRITE_OPERATION_LATENCY_NAME
- See Also:
-
WRITE_OPERATION_LATENCY_DESC
- See Also:
-
SYNC_OPERATION_LATENCY_NAME
- See Also:
-
SYNC_OPERATION_LATENCY_DESC
- See Also:
-
-
Method Details
-
incrementAuthFailedCount
void incrementAuthFailedCount()Increment the count of failed ops due to AUTHFAILED Exception. -
incrementConnectionLossCount
void incrementConnectionLossCount()Increment the count of failed ops due to a CONNECTIONLOSS Exception. -
incrementDataInconsistencyCount
Increment the count of failed ops due to a DATAINCONSISTENCY Exception. -
incrementInvalidACLCount
void incrementInvalidACLCount()Increment the count of failed ops due to INVALIDACL Exception. -
incrementNoAuthCount
void incrementNoAuthCount()Increment the count of failed ops due to NOAUTH Exception. -
incrementOperationTimeoutCount
Increment the count of failed ops due to an OPERATIONTIMEOUT Exception. -
incrementRuntimeInconsistencyCount
Increment the count of failed ops due to RUNTIMEINCONSISTENCY Exception. -
incrementSessionExpiredCount
void incrementSessionExpiredCount()Increment the count of failed ops due to a SESSIONEXPIRED Exception. -
incrementSystemErrorCount
void incrementSystemErrorCount()Increment the count of failed ops due to a SYSTEMERROR Exception. -
recordReadOperationLatency
Record the latency incurred for read operations. -
recordWriteOperationLatency
Record the latency incurred for write operations. -
recordSyncOperationLatency
Record the latency incurred for sync operations. -
incrementTotalFailedZKCalls
void incrementTotalFailedZKCalls()Record the total number of failed ZooKeeper API calls.
-