@InterfaceAudience.Private public class MetricsZooKeeperSourceImpl extends BaseSourceImpl implements MetricsZooKeeperSource
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.metrics2.lib.MutableGaugeLong |
authFailedFailedOpCount |
private org.apache.hadoop.metrics2.lib.MutableGaugeLong |
connectionLossFailedOpCount |
private org.apache.hadoop.metrics2.lib.MutableGaugeLong |
dataInconsistencyFailedOpCount |
private org.apache.hadoop.metrics2.lib.MutableGaugeLong |
invalidACLFailedOpCount |
private org.apache.hadoop.metrics2.lib.MutableGaugeLong |
noAuthFailedOpCount |
private org.apache.hadoop.metrics2.lib.MutableGaugeLong |
operationTimeOutFailedOpCount |
private MutableHistogram |
readOpLatency |
private org.apache.hadoop.metrics2.lib.MutableGaugeLong |
runtimeInconsistencyFailedOpCount |
private org.apache.hadoop.metrics2.lib.MutableGaugeLong |
sessionExpiredFailedOpCount |
private MutableHistogram |
syncOpLatency |
private org.apache.hadoop.metrics2.lib.MutableGaugeLong |
systemErrorFailedOpCount |
private org.apache.hadoop.metrics2.lib.MutableGaugeLong |
totalFailedZKCalls |
private MutableHistogram |
writeOpLatency |
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registry
EXCEPTION_AUTHFAILED, EXCEPTION_AUTHFAILED_DESC, EXCEPTION_CONNECTIONLOSS, EXCEPTION_CONNECTIONLOSS_DESC, EXCEPTION_DATAINCONSISTENCY, EXCEPTION_DATAINCONSISTENCY_DESC, EXCEPTION_INVALIDACL, EXCEPTION_INVALIDACL_DESC, EXCEPTION_NOAUTH, EXCEPTION_NOAUTH_DESC, EXCEPTION_OPERATIONTIMEOUT, EXCEPTION_OPERATIONTIMEOUT_DESC, EXCEPTION_RUNTIMEINCONSISTENCY, EXCEPTION_RUNTIMEINCONSISTENCY_DESC, EXCEPTION_SESSIONEXPIRED, EXCEPTION_SESSIONEXPIRED_DESC, EXCEPTION_SYSTEMERROR, EXCEPTION_SYSTEMERROR_DESC, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, READ_OPERATION_LATENCY_DESC, READ_OPERATION_LATENCY_NAME, SYNC_OPERATION_LATENCY_DESC, SYNC_OPERATION_LATENCY_NAME, TOTAL_FAILED_ZK_CALLS, TOTAL_FAILED_ZK_CALLS_DESC, WRITE_OPERATION_LATENCY_DESC, WRITE_OPERATION_LATENCY_NAME
HBASE_METRICS_SYSTEM_NAME
Constructor and Description |
---|
MetricsZooKeeperSourceImpl() |
MetricsZooKeeperSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext) |
Modifier and Type | Method and Description |
---|---|
private static void |
clearMetricIfNotNull(org.apache.hadoop.metrics2.lib.MutableGaugeLong metric) |
private void |
clearZKExceptionMetrics() |
void |
getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector,
boolean all) |
void |
incrementAuthFailedCount()
Increment the count of failed ops due to AUTHFAILED Exception.
|
void |
incrementConnectionLossCount()
Increment the count of failed ops due to a CONNECTIONLOSS Exception.
|
void |
incrementDataInconsistencyCount()
Increment the count of failed ops due to a DATAINCONSISTENCY Exception.
|
void |
incrementInvalidACLCount()
Increment the count of failed ops due to INVALIDACL Exception.
|
void |
incrementNoAuthCount()
Increment the count of failed ops due to NOAUTH Exception.
|
void |
incrementOperationTimeoutCount()
Increment the count of failed ops due to an OPERATIONTIMEOUT Exception.
|
void |
incrementRuntimeInconsistencyCount()
Increment the count of failed ops due to RUNTIMEINCONSISTENCY Exception.
|
void |
incrementSessionExpiredCount()
Increment the count of failed ops due to a SESSIONEXPIRED Exception.
|
void |
incrementSystemErrorCount()
Increment the count of failed ops due to a SYSTEMERROR Exception.
|
void |
incrementTotalFailedZKCalls()
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.
|
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
private final org.apache.hadoop.metrics2.lib.MutableGaugeLong authFailedFailedOpCount
private final org.apache.hadoop.metrics2.lib.MutableGaugeLong connectionLossFailedOpCount
private final org.apache.hadoop.metrics2.lib.MutableGaugeLong dataInconsistencyFailedOpCount
private final org.apache.hadoop.metrics2.lib.MutableGaugeLong invalidACLFailedOpCount
private final org.apache.hadoop.metrics2.lib.MutableGaugeLong noAuthFailedOpCount
private final org.apache.hadoop.metrics2.lib.MutableGaugeLong operationTimeOutFailedOpCount
private final org.apache.hadoop.metrics2.lib.MutableGaugeLong runtimeInconsistencyFailedOpCount
private final org.apache.hadoop.metrics2.lib.MutableGaugeLong sessionExpiredFailedOpCount
private final org.apache.hadoop.metrics2.lib.MutableGaugeLong systemErrorFailedOpCount
private final org.apache.hadoop.metrics2.lib.MutableGaugeLong totalFailedZKCalls
private MutableHistogram readOpLatency
private MutableHistogram writeOpLatency
private MutableHistogram syncOpLatency
public MetricsZooKeeperSourceImpl()
public MetricsZooKeeperSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
public void getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector, boolean all)
getMetrics
in interface org.apache.hadoop.metrics2.MetricsSource
getMetrics
in class BaseSourceImpl
private void clearZKExceptionMetrics()
private static void clearMetricIfNotNull(org.apache.hadoop.metrics2.lib.MutableGaugeLong metric)
public void incrementAuthFailedCount()
MetricsZooKeeperSource
incrementAuthFailedCount
in interface MetricsZooKeeperSource
public void incrementConnectionLossCount()
MetricsZooKeeperSource
incrementConnectionLossCount
in interface MetricsZooKeeperSource
public void incrementDataInconsistencyCount()
MetricsZooKeeperSource
incrementDataInconsistencyCount
in interface MetricsZooKeeperSource
public void incrementInvalidACLCount()
MetricsZooKeeperSource
incrementInvalidACLCount
in interface MetricsZooKeeperSource
public void incrementNoAuthCount()
MetricsZooKeeperSource
incrementNoAuthCount
in interface MetricsZooKeeperSource
public void incrementOperationTimeoutCount()
MetricsZooKeeperSource
incrementOperationTimeoutCount
in interface MetricsZooKeeperSource
public void incrementRuntimeInconsistencyCount()
MetricsZooKeeperSource
incrementRuntimeInconsistencyCount
in interface MetricsZooKeeperSource
public void incrementSessionExpiredCount()
MetricsZooKeeperSource
incrementSessionExpiredCount
in interface MetricsZooKeeperSource
public void incrementSystemErrorCount()
MetricsZooKeeperSource
incrementSystemErrorCount
in interface MetricsZooKeeperSource
public void incrementTotalFailedZKCalls()
MetricsZooKeeperSource
incrementTotalFailedZKCalls
in interface MetricsZooKeeperSource
public void recordReadOperationLatency(long latency)
MetricsZooKeeperSource
recordReadOperationLatency
in interface MetricsZooKeeperSource
public void recordWriteOperationLatency(long latency)
MetricsZooKeeperSource
recordWriteOperationLatency
in interface MetricsZooKeeperSource
public void recordSyncOperationLatency(long latency)
MetricsZooKeeperSource
recordSyncOperationLatency
in interface MetricsZooKeeperSource
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.