@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, registryEXCEPTION_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_NAMEHBASE_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, updateHistogramclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogramprivate 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.MetricsSourcegetMetrics in class BaseSourceImplprivate void clearZKExceptionMetrics()
private static void clearMetricIfNotNull(org.apache.hadoop.metrics2.lib.MutableGaugeLong metric)
public void incrementAuthFailedCount()
MetricsZooKeeperSourceincrementAuthFailedCount in interface MetricsZooKeeperSourcepublic void incrementConnectionLossCount()
MetricsZooKeeperSourceincrementConnectionLossCount in interface MetricsZooKeeperSourcepublic void incrementDataInconsistencyCount()
MetricsZooKeeperSourceincrementDataInconsistencyCount in interface MetricsZooKeeperSourcepublic void incrementInvalidACLCount()
MetricsZooKeeperSourceincrementInvalidACLCount in interface MetricsZooKeeperSourcepublic void incrementNoAuthCount()
MetricsZooKeeperSourceincrementNoAuthCount in interface MetricsZooKeeperSourcepublic void incrementOperationTimeoutCount()
MetricsZooKeeperSourceincrementOperationTimeoutCount in interface MetricsZooKeeperSourcepublic void incrementRuntimeInconsistencyCount()
MetricsZooKeeperSourceincrementRuntimeInconsistencyCount in interface MetricsZooKeeperSourcepublic void incrementSessionExpiredCount()
MetricsZooKeeperSourceincrementSessionExpiredCount in interface MetricsZooKeeperSourcepublic void incrementSystemErrorCount()
MetricsZooKeeperSourceincrementSystemErrorCount in interface MetricsZooKeeperSourcepublic void incrementTotalFailedZKCalls()
MetricsZooKeeperSourceincrementTotalFailedZKCalls in interface MetricsZooKeeperSourcepublic void recordReadOperationLatency(long latency)
MetricsZooKeeperSourcerecordReadOperationLatency in interface MetricsZooKeeperSourcepublic void recordWriteOperationLatency(long latency)
MetricsZooKeeperSourcerecordWriteOperationLatency in interface MetricsZooKeeperSourcepublic void recordSyncOperationLatency(long latency)
MetricsZooKeeperSourcerecordSyncOperationLatency in interface MetricsZooKeeperSourceCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.