Interface MetricsZooKeeperSource
- All Superinterfaces:
BaseSource
- All Known Implementing Classes:
MetricsZooKeeperSourceImpl
Interface of the source that will export metrics about the ZooKeeper.
-
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 StringThe name of the metrics context that metrics will be under.static final StringDescriptionstatic final StringThe name of the metrics context that metrics will be under in jmx.static final StringThe name of the metricsstatic 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 TypeMethodDescriptionvoidIncrement the count of failed ops due to AUTHFAILED Exception.voidIncrement the count of failed ops due to a CONNECTIONLOSS Exception.voidIncrement the count of failed ops due to a DATAINCONSISTENCY Exception.voidIncrement the count of failed ops due to INVALIDACL Exception.voidIncrement the count of failed ops due to NOAUTH Exception.voidIncrement the count of failed ops due to an OPERATIONTIMEOUT Exception.voidIncrement the count of failed ops due to RUNTIMEINCONSISTENCY Exception.voidIncrement the count of failed ops due to a SESSIONEXPIRED Exception.voidIncrement the count of failed ops due to a SYSTEMERROR Exception.voidRecord the total number of failed ZooKeeper API calls.voidrecordReadOperationLatency(long latency) Record the latency incurred for read operations.voidrecordSyncOperationLatency(long latency) Record the latency incurred for sync operations.voidrecordWriteOperationLatency(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.
-