Package org.apache.zookeeper.server
Class ServerMetrics
java.lang.Object
org.apache.zookeeper.server.ServerMetrics
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SummarySet
final Counter
final Summary
final Counter
final Summary
final Counter
final Counter
final Summary
final Summary
final Counter
final Summary
final Summary
final Counter
final Counter
final Counter
final Counter
final Summary
final Summary
Db init time (snapshot loading + txnlog replay)final Summary
final Counter
final Counter
static final ServerMetrics
Dummy instance useful for tests.final Counter
final Counter
final Summary
final Counter
final Counter
final Counter
final Summary
final Summary
Txnlog fsync timefinal Summary
final Summary
final Counter
final Summary
final Counter
final Summary
final Counter
final SummarySet
Learner handler quorum packet metrics.final SummarySet
final Counter
final Summary
final Summary
Time spent by a committed request, for a locally issued write, in the commit processor.final Counter
final Summary
final Summary
final Summary
final Summary
Fired watcher stats.final Summary
static final ServerMetrics
Dummy instance useful for tests.final Summary
final Summary
final Summary
Observer Master processing metrics.final Counter
final Counter
final Summary
final Summary
final Summary
final Summary
final Counter
final Summary
Stats for all quorum request.final Summary
final Counter
final Summary
final Summary
final Counter
final Summary
final CounterSet
final Summary
Time spent by a read request in the commit processor.final Summary
Time spent by the final processor.final Summary
final Summary
Stats for read request.final SummarySet
final Summary
final Summary
final Summary
final Summary
final Counter
final Summary
final Counter
final Counter
Number of response/watch bytes written to clients.final Counter
final Counter
final Counter
final Counter
final Counter
Restore error countfinal Counter
Restore rate limited countfinal Summary
Restore timefinal Counter
final Summary
Time spent by a committed request for a write, issued by other server, in the commit processor.final Summary
final Counter
final Counter
final Counter
final Counter
Snapshot error countfinal Counter
Snapshot rate limited countfinal Summary
Snapshot writing timefinal Summary
final Counter
final Counter
final Counter
final Counter
final Summary
final Summary
final Summary
final Summary
final Summary
final Summary
final Summary
final Summary
final Counter
final Counter
final Summary
final Counter
final Summary
final Counter
final Counter
final Summary
Stats for request that need quorum voting.final Counter
final Summary
final Summary
Time spent by a write request in the commit processor.final Summary
final SummarySet
final Summary
final Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServerMetrics
Access current ServerMetrics.static void
metricsProviderInitialized
(MetricsProvider metricsProvider) void
resetAll()
-
Field Details
-
NULL_METRICS
Dummy instance useful for tests. -
DEFAULT_METRICS_FOR_TESTS
Dummy instance useful for tests. -
FSYNC_TIME
Txnlog fsync time -
SNAPSHOT_TIME
Snapshot writing time -
SNAPSHOT_ERROR_COUNT
Snapshot error count -
SNAPSHOT_RATE_LIMITED_COUNT
Snapshot rate limited count -
RESTORE_TIME
Restore time -
RESTORE_ERROR_COUNT
Restore error count -
RESTORE_RATE_LIMITED_COUNT
Restore rate limited count -
DB_INIT_TIME
Db init time (snapshot loading + txnlog replay) -
READ_LATENCY
Stats for read request. The timing start from when the server see the request until it leave final request processor. -
UPDATE_LATENCY
Stats for request that need quorum voting. Timing is the same as read request. We only keep track of stats for request that originated from this machine only. -
PROPAGATION_LATENCY
Stats for all quorum request. The timing start from when the leader see the request until it reach the learner. -
FOLLOWER_SYNC_TIME
-
OBSERVER_SYNC_TIME
-
ELECTION_TIME
-
LOOKING_COUNT
-
DIFF_COUNT
-
SNAP_COUNT
-
COMMIT_COUNT
-
CONNECTION_REQUEST_COUNT
-
REVALIDATE_COUNT
-
CONNECTION_DROP_COUNT
-
CONNECTION_REVALIDATE_COUNT
-
SESSIONLESS_CONNECTIONS_EXPIRED
-
STALE_SESSIONS_EXPIRED
-
UNAVAILABLE_TIME
-
LEADER_UNAVAILABLE_TIME
-
CONNECTION_TOKEN_DEFICIT
-
CONNECTION_REJECTED
-
INFLIGHT_SNAP_COUNT
-
INFLIGHT_DIFF_COUNT
-
UNRECOVERABLE_ERROR_COUNT
-
WRITE_PER_NAMESPACE
-
READ_PER_NAMESPACE
-
BYTES_RECEIVED_COUNT
-
PREP_PROCESSOR_QUEUE_TIME
-
PREP_PROCESSOR_QUEUE_SIZE
-
PREP_PROCESSOR_QUEUED
-
OUTSTANDING_CHANGES_QUEUED
-
OUTSTANDING_CHANGES_REMOVED
-
PREP_PROCESS_TIME
-
PROPOSAL_PROCESS_TIME
-
CLOSE_SESSION_PREP_TIME
-
PROPOSAL_LATENCY
-
PROPOSAL_ACK_CREATION_LATENCY
-
COMMIT_PROPAGATION_LATENCY
-
LEARNER_PROPOSAL_RECEIVED_COUNT
-
LEARNER_COMMIT_RECEIVED_COUNT
-
STARTUP_TXNS_LOADED
-
STARTUP_TXNS_LOAD_TIME
-
STARTUP_SNAP_LOAD_TIME
-
SYNC_PROCESSOR_QUEUE_AND_FLUSH_TIME
-
SYNC_PROCESSOR_QUEUE_SIZE
-
SYNC_PROCESSOR_QUEUED
-
SYNC_PROCESSOR_QUEUE_TIME
-
SYNC_PROCESSOR_FLUSH_TIME
-
SYNC_PROCESS_TIME
-
BATCH_SIZE
-
QUORUM_ACK_LATENCY
-
ACK_LATENCY
-
PROPOSAL_COUNT
-
QUIT_LEADING_DUE_TO_DISLOYAL_VOTER
-
NODE_CREATED_WATCHER
Fired watcher stats. -
NODE_DELETED_WATCHER
-
NODE_CHANGED_WATCHER
-
NODE_CHILDREN_WATCHER
-
ADD_DEAD_WATCHER_STALL_TIME
-
DEAD_WATCHERS_QUEUED
-
DEAD_WATCHERS_CLEARED
-
DEAD_WATCHERS_CLEANER_LATENCY
-
RESPONSE_PACKET_CACHE_HITS
-
RESPONSE_PACKET_CACHE_MISSING
-
RESPONSE_PACKET_GET_CHILDREN_CACHE_HITS
-
RESPONSE_PACKET_GET_CHILDREN_CACHE_MISSING
-
LEARNER_HANDLER_QP_SIZE
Learner handler quorum packet metrics. -
LEARNER_HANDLER_QP_TIME
-
REQUESTS_IN_SESSION_QUEUE
-
PENDING_SESSION_QUEUE_SIZE
-
READS_AFTER_WRITE_IN_SESSION_QUEUE
-
READ_ISSUED_FROM_SESSION_QUEUE
-
SESSION_QUEUES_DRAINED
-
TIME_WAITING_EMPTY_POOL_IN_COMMIT_PROCESSOR_READ
-
WRITE_BATCH_TIME_IN_COMMIT_PROCESSOR
-
CONCURRENT_REQUEST_PROCESSING_IN_COMMIT_PROCESSOR
-
READS_QUEUED_IN_COMMIT_PROCESSOR
-
WRITES_QUEUED_IN_COMMIT_PROCESSOR
-
COMMITS_QUEUED_IN_COMMIT_PROCESSOR
-
COMMITS_QUEUED
-
READS_ISSUED_IN_COMMIT_PROC
-
WRITES_ISSUED_IN_COMMIT_PROC
-
THROTTLED_OPS
-
READ_COMMITPROC_TIME
Time spent by a read request in the commit processor. -
WRITE_COMMITPROC_TIME
Time spent by a write request in the commit processor. -
LOCAL_WRITE_COMMITTED_TIME
Time spent by a committed request, for a locally issued write, in the commit processor. -
SERVER_WRITE_COMMITTED_TIME
Time spent by a committed request for a write, issued by other server, in the commit processor. -
COMMIT_PROCESS_TIME
-
OM_PROPOSAL_PROCESS_TIME
Observer Master processing metrics. -
OM_COMMIT_PROCESS_TIME
-
READ_FINAL_PROC_TIME
Time spent by the final processor. This is tracked in the commit processor. -
WRITE_FINAL_PROC_TIME
-
ENSEMBLE_AUTH_SUCCESS
-
ENSEMBLE_AUTH_FAIL
-
ENSEMBLE_AUTH_SKIP
-
STALE_REQUESTS
-
STALE_REQUESTS_DROPPED
-
STALE_REPLIES
-
REQUEST_THROTTLE_QUEUE_TIME
-
REQUEST_THROTTLE_WAIT_COUNT
-
LARGE_REQUESTS_REJECTED
-
NETTY_QUEUED_BUFFER
-
DIGEST_MISMATCHES_COUNT
-
LEARNER_REQUEST_PROCESSOR_QUEUE_SIZE
-
UNSUCCESSFUL_HANDSHAKE
-
INSECURE_ADMIN
-
TLS_HANDSHAKE_EXCEEDED
-
CNXN_CLOSED_WITHOUT_ZK_SERVER_RUNNING
-
SKIP_LEARNER_REQUEST_TO_NEXT_PROCESSOR_COUNT
-
SOCKET_CLOSING_TIME
-
REQUESTS_NOT_FORWARDED_TO_COMMIT_PROCESSOR
-
RESPONSE_BYTES
Number of response/watch bytes written to clients. -
WATCH_BYTES
-
JVM_PAUSE_TIME
-
QUOTA_EXCEEDED_ERROR_PER_NAMESPACE
-
-
Method Details
-
getMetrics
Access current ServerMetrics.- Returns:
- a reference to the current Metrics
-
metricsProviderInitialized
-
resetAll
public void resetAll() -
getMetricsProvider
-