ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. All these services are used in some form or other by distributed applications. Each time the services are implemented, a lot of effort goes into fixing the bugs and race conditions that are inevitable. As a result, the applications initially usually skimp on the services, which makes them brittle in the presence of change and difficult to manage. ZooKeeper aims at distilling the essence of these different services into a very simple interface to a centralized coordination service. The service itself is distributed and highly reliable.

Prerequisite

For virtual machines, install the Linux agent.

Configuring the application

Virtual machine

Configure the application in the directory /opt/opsramp/agent/conf/app/discovery/auto-detection.yaml

- name: zookeeper
  instance-checks:
    process-check:
      - QuorumPeerMain
    port-check:
      - 2181

Docker environment

Configure the application in the directory /opt/opsramp/agent/conf/app/discovery/auto-container-detection.yaml

- name: zookeeper
  container-checks:
    image-check:
      - zookeeper
    port-check:
      - 2181

Kubernetes environment

Configure the application in config.yaml

- name: zookeeper
  container-checks:
    image-check:
      - zookeeper
    port-check:
      - 2181

Validate

Go to Resources under the Infrastructure tab to check if your resources are onboarded and the metrics are collected.

Metrics

OpsRamp MetricMetric Display NameUnitDescription
zookeeper_approximate_data_sizeApproximate Data SizebytesApproximate data size
zookeeper_avg_latencyAvg LatencymillisecondsTime taken by the server to respond to a client request.
zookeeper_ReceivedData ReceivedbytesNumber of bytes received
zookeeper_SentData SentbytesNumber of bytes sent
zookeeper_ConnectionsConnectionsconnectionsTotal count of client connections.
zookeeper_ephemerals_countEphemerals CountEphemerals count
zookeeper_max_file_descriptor_countMax File Descriptor CountMaximum file descriptor count
zookeeper_max_latencyMax LatencymillisecondsMaximum time taken to respond
zookeeper_min_latencyMin LatencymillisecondsMinimum time taken to respond
zookeeper_max_file_descriptor_countMax File Descriptor CountMaximum number of file descriptor count
zookeeper_num_alive_connectionsNum Alive Connectionsconnectionsnumber of alive connections
zookeeper_open_file_descriptor_countOpen File Descriptor CountNumber of open file descriptor count
zookeeper_outstanding_requestsOutstanding RequestsrequestsNumber of outstanding requests
zookeeper_packets_receivedPackets ReceivedpacketsNumber of packets received
zookeeper_packets_sentPackets SentpacketsNumber of packets sent
zookeeper_server_stateServer StateState of the server
zookeeper_watch_countWatch CountWatch count
zookeeper_znode_countZnode CountNumber of znodes in the ZooKeeper namespace
zookeeper_add_dead_watcher_stall_timeAdd Dead Watcher Stall TimesecondsAdd dead watcher stall time
zookeeper_bytes_received_countBytes Received CountNumber of bytes received
zookeeper_cnt_close_session_prep_timeCnt Close Session Prep TimesecondsCount of close session prep time
zookeeper_sum_close_session_prep_timeSum Close Session Prep TimesecondsSumclose session prep time
zookeeper_avg_close_session_prep_timeAvg Close Session Prep TimesecondsAverage close session prep time
zookeeper_cnt_commit_commit_proc_req_queuedCnt Commit Commit Proc Req QueuedCount of 'commit commit proc req' queued
zookeeper_sum_commit_commit_proc_req_queuedSum Commit Commit Proc Req QueuedSum of 'commit commit proc req' queued
zookeeper_avg_commit_commit_proc_req_queuedAvg Commit Commit Proc Req QueuedAverage 'commit commit proc req' queued
zookeeper_commit_countCommit CountTotal commit count
zookeeper_cnt_commit_process_timeCnt Commit Process TimesecondsCount of commit process time
zookeeper_sum_commit_process_timeSum Commit Process TimesecondsSum commit process time
zookeeper_avg_commit_process_timeAvg Commit Process TimesecondsAverage commit process time
zookeeper_cnt_commit_propagation_latencyCnt Commit Propagation LatencymillisecondsCount of commit propagation latency
zookeeper_sum_commit_propagation_latencySum Commit Propagation LatencymillisecondsSum commit propagation latency
zookeeper_avg_commit_propagation_latencyAvg Commit Propagation LatencymillisecondsAverage commit propagation latency
zookeeper_cnt_concurrent_request_processing_in_commit_processorCnt Concurrent Request Processing In Commit ProcessorCount of concurrent request processing in commit processor
zookeeper_sum_concurrent_request_processing_in_commit_processorSum Concurrent Request Processing In Commit ProcessorSum concurrent request processing in commit processor
zookeeper_avg_concurrent_request_processing_in_commit_processorAvg Concurrent Request Processing In Commit ProcessorAverage concurrent request processing in commit processor
zookeeper_connection_drop_countConnection Drop CountConnection drop count
zookeeper_connection_drop_probabilityConnection Drop ProbabilityConnection drop probability
zookeeper_connection_rejectedConnection RejectedConnection rejected
zookeeper_connection_request_countConnection Request CountConnection request count
zookeeper_connection_revalidate_countConnection Revalidate CountConnection revalidate count
zookeeper_cnt_connection_token_deficitCnt Connection Token DeficitCount of connection token deficit
zookeeper_sum_connection_token_deficitSum Connection Token DeficitSum connection token deficit
zookeeper_avg_connection_token_deficitAvg Connection Token DeficitAverage connection token deficit
zookeeper_cnt_dbinittimeCnt DbinittimeCount of dbinittime
zookeeper_sum_dbinittimeSum DbinittimeSum dbinittime
zookeeper_avg_dbinittimeAvg DbinittimeAverage dbinittime
zookeeper_cnt_dead_watchers_cleaner_latencyCnt Dead Watchers Cleaner LatencyCount of dead watchers cleaner latency
zookeeper_sum_dead_watchers_cleaner_latencySum Dead Watchers Cleaner LatencySum dead watchers cleaner latency
zookeeper_avg_dead_watchers_cleaner_latencyAvg Dead Watchers Cleaner LatencyAverage dead watchers cleaner latency
zookeeper_dead_watchers_clearedDead Watchers ClearedDead watchers cleared
zookeeper_dead_watchers_queuedDead Watchers QueuedDead watchers queued
zookeeper_diff_countDiff CountDiff count
zookeeper_digest_mismatches_countDigest Mismatches CountDigest mismatches count
zookeeper_cnt_election_timeCnt Election TimesecondsCount of election time
zookeeper_sum_election_timeSum Election TimesecondsElection time
zookeeper_avg_election_timeAvg Election TimesecondsAverage election time
zookeeper_ensemble_auth_failEnsemble Auth FailEnsemble auth fail
zookeeper_ensemble_auth_skipEnsemble Auth SkipEnsemble auth skip
zookeeper_ensemble_auth_successEnsemble Auth SuccessEnsemble auth success
zookeeper_cnt_follower_sync_timeCnt Follower Sync TimesecondsCount of follower sync time
zookeeper_sum_follower_sync_timeSum Follower Sync TimesecondsSum follower sync time
zookeeper_avg_follower_sync_timeAvg Follower Sync TimesecondsAverage follower sync time
zookeeper_cnt_fsynctimeCnt FsynctimesecondsCount of fsynctime
zookeeper_sum_fsynctimeSum FsynctimesecondsSum fsynctime
zookeeper_avg_fsynctimeAvg FsynctimesecondsAverage fsynctime
zookeeper_global_sessionsGlobal SessionsGlobal sessions
zookeeper_large_requests_rejectedLarge Requests RejectedLarge requests rejected
zookeeper_last_client_response_sizeLast Client Response SizeLast client response size
zookeeper_learner_commit_received_countLearner Commit Received CountLearner commit received count
zookeeper_learner_proposal_received_countLearner Proposal Received CountLearner proposal received count
zookeeper_local_sessionsLocal SessionsLocal sessions
zookeeper_cnt_local_write_committed_time_msCnt Local Write Committed Time MsmillisecondsCount of local write committed time
zookeeper_sum_local_write_committed_time_msSum Local Write Committed Time MsmillisecondsSum local write committed time
zookeeper_avg_local_write_committed_time_msAvg Local Write Committed Time MsmillisecondsAverage local write committed time
zookeeper_looking_countLooking Countlooking count
zookeeper_max_client_response_sizeMax Client Response Sizemax client response size
zookeeper_min_client_response_sizeMin Client Response Sizemin client response size
zookeeper_cnt_netty_queued_buffer_capacityCnt Netty Queued Buffer CapacityCount of netty queued buffer capacity
zookeeper_sum_netty_queued_buffer_capacitySum Netty Queued Buffer Capacitysum netty queued buffer capacity
zookeeper_avg_netty_queued_buffer_capacityAvg Netty Queued Buffer CapacityAverage netty queued buffer capacity
zookeeper_cnt_node_changed_watch_countCnt Node Changed Watch CountCount of node changed watch count
zookeeper_sum_node_changed_watch_countSum Node Changed Watch CountSum node changed watch count
zookeeper_avg_node_changed_watch_countAvg Node Changed Watch CountAverage node changed watch count
zookeeper_cnt_node_children_watch_countCnt Node Children Watch CountCount of node children watch count
zookeeper_sum_node_children_watch_countSum Node Children Watch CountSum node children watch count
zookeeper_avg_node_children_watch_countAvg Node Children Watch CountAverage node children watch count
zookeeper_cnt_node_created_watch_countCnt Node Created Watch CountCount of node created watch count
zookeeper_sum_node_created_watch_countSum Node Created Watch CountSum node created watch count
zookeeper_avg_node_created_watch_countAvg Node Created Watch CountAverage node created watch count
zookeeper_cnt_node_deleted_watch_countCnt Node Deleted Watch CountCount of node deleted watch count
zookeeper_sum_node_deleted_watch_countSum Node Deleted Watch CountSum node deleted watch count
zookeeper_avg_node_deleted_watch_countAvg Node Deleted Watch CountAverage node deleted watch count
zookeeper_cnt_om_commit_process_time_msCnt Om Commit Process Time MsmillisecondsCount of om commit process time
zookeeper_sum_om_commit_process_time_msSum Om Commit Process Time MsmillisecondsSum om commit process time
zookeeper_avg_om_commit_process_time_msAvg Om Commit Process Time MsmillisecondsAverage om commit process time
zookeeper_cnt_om_proposal_process_time_msCnt Om Proposal Process Time MsmillisecondsCount of om proposal process time
zookeeper_sum_om_proposal_process_time_msSum Om Proposal Process Time MsmillisecondsSum om proposal process time
zookeeper_avg_om_proposal_process_time_msAvg Om Proposal Process Time MsmillisecondsAverage om proposal process time
zookeeper_outstanding_changes_queuedOutstanding Changes Queuedoutstanding changes queued
zookeeper_outstanding_changes_removedOutstanding Changes Removedoutstanding changes removed
zookeeper_outstanding_tls_handshakeOutstanding Tls Handshakeoutstanding tls handshake
zookeeper_cnt_pending_session_queue_sizeCnt Pending Session Queue SizeCount of pending session queue size
zookeeper_sum_pending_session_queue_sizeSum Pending Session Queue SizeSum pending session queue size
zookeeper_avg_pending_session_queue_sizeAvg Pending Session Queue SizeAverage pending session queue size
zookeeper_cnt_prep_process_timeCnt Prep Process TimesecondsCount of prep process time
zookeeper_sum_prep_process_timeSum Prep Process TimesecondsSum prep process time
zookeeper_avg_prep_process_timeAvg Prep Process TimesecondsAverage prep process time
zookeeper_cnt_prep_processor_queue_sizeCnt Prep Processor Queue SizeCount of prep processor queue size
zookeeper_sum_prep_processor_queue_sizeSum Prep Processor Queue SizeSum prep processor queue size
zookeeper_avg_prep_processor_queue_sizeAvg Prep Processor Queue SizeAverage prep processor queue size
zookeeper_cnt_prep_processor_queue_time_msCnt Prep Processor Queue Time MsmillisecondsCount of prep processor queue time
zookeeper_sum_prep_processor_queue_time_msSum Prep Processor Queue Time MsmillisecondsSum prep processor queue time
zookeeper_avg_prep_processor_queue_time_msAvg Prep Processor Queue Time MsmillisecondsAverage prep processor queue time
zookeeper_prep_processor_request_queuedPrep Processor Request Queuedprep processor request queued
zookeeper_avg_propagation_latencyAvg Propagation LatencyAverage propagation latency
zookeeper_cnt_propagation_latencyCnt Propagation LatencyCount of propagation latency
zookeeper_sum_propagation_latencySum Propagation LatencySum propagation latency
zookeeper_avg_proposal_ack_creation_latencyAvg Proposal Ack Creation LatencyAverage proposal ack creation latency
zookeeper_cnt_proposal_ack_creation_latencyCnt Proposal Ack Creation LatencyCount of proposal ack creation latency
zookeeper_sum_proposal_ack_creation_latencySum Proposal Ack Creation LatencySum proposal ack creation latency
zookeeper_proposal_countProposal Countproposal count
zookeeper_avg_proposal_latencyAvg Proposal LatencyAverage proposal latency
zookeeper_cnt_proposal_latencyCnt Proposal LatencyCount of proposal latency
zookeeper_sum_proposal_latencySum Proposal LatencySum proposal latency
zookeeper_quit_leading_due_to_disloyal_voterQuit Leading Due To Disloyal Voterquit leading due to disloyal voter
zookeeper_avg_quorum_ack_latencyAvg Quorum Ack LatencyAverage quorum ack latency
zookeeper_cnt_quorum_ack_latencyCnt Quorum Ack LatencyCount of quorum ack latency
zookeeper_sum_quorum_ack_latencySum Quorum Ack LatencySum quorum ack latency
zookeeper_avg_read_commit_proc_req_queuedAvg Read Commit Proc Req QueuedAverage read commit proc req queued
zookeeper_cnt_read_commit_proc_req_queuedCnt Read Commit Proc Req QueuedCount of read commit proc req queued
zookeeper_sum_read_commit_proc_req_queuedSum Read Commit Proc Req QueuedSum read commit proc req queued
zookeeper_avg_read_commitproc_time_msAvg Read Commitproc Time MsmillisecondsAverage read commitproc time
zookeeper_cnt_read_commitproc_time_msCnt Read Commitproc Time MsmillisecondsCount of read commitproc time
zookeeper_sum_read_commitproc_time_msSum Read Commitproc Time MsmillisecondsSum read commitproc time
zookeeper_avg_read_final_proc_time_msAvg Read Final Proc Time MsmillisecondsAverage read final proc time
zookeeper_cnt_read_final_proc_time_msCnt Read Final Proc Time MsmillisecondsCount of read final proc time
zookeeper_sum_read_final_proc_time_msSum Read Final Proc Time MsmillisecondsSum read final proc time
zookeeper_avg_readlatencyAvg ReadlatencyAverage readlatency
zookeeper_cnt_readlatencyCnt ReadlatencyCount of readlatency
zookeeper_sum_readlatencySum ReadlatencySum readlatency
zookeeper_avg_reads_after_write_in_session_queueAvg Reads After Write In Session QueueAverage reads after write in session queue
zookeeper_cnt_reads_after_write_in_session_queueCnt Reads After Write In Session QueueCount of reads after write in session queue
zookeeper_sum_reads_after_write_in_session_queueSum Reads After Write In Session QueueSum reads after write in session queue
zookeeper_avg_reads_issued_from_session_queueAvg Reads Issued From Session QueueAverage reads issued from session queue
zookeeper_cnt_reads_issued_from_session_queueCnt Reads Issued From Session QueueCount of reads issued from session queue
zookeeper_sum_reads_issued_from_session_queueSum Reads Issued From Session QueueSum reads issued from session queue
zookeeper_request_commit_queuedRequest Commit Queuedrequest commit queued
zookeeper_request_throttle_wait_countRequest Throttle Wait Countrequest throttle wait count
zookeeper_avg_requests_in_session_queueAvg Requests In Session QueueAverage requests in session queue
zookeeper_cnt_requests_in_session_queueCnt Requests In Session QueueCount of requests in session queue
zookeeper_sum_requests_in_session_queueSum Requests In Session QueueSum requests in session queue
zookeeper_response_packet_cache_hitsResponse Packet Cache Hitsresponse packet cache hits
zookeeper_response_packet_cache_missesResponse Packet Cache Missesresponse packet cache misses
zookeeper_response_packet_get_children_cache_hitsResponse Packet Get Children Cache Hitsresponse packet get children cache hits
zookeeper_response_packet_get_children_cache_missesResponse Packet Get Children Cache Missesresponse packet get children cache misses
zookeeper_revalidate_countRevalidate Countrevalidate count
zookeeper_avg_server_write_committed_time_msAvg Server Write Committed Time MsmillisecondsAverage server write committed time
zookeeper_cnt_server_write_committed_time_msCnt Server Write Committed Time MsmillisecondsCount of server write committed time
zookeeper_sum_server_write_committed_time_msSum Server Write Committed Time MsmillisecondsSum server write committed time
zookeeper_avg_session_queues_drainedAvg Session Queues DrainedAverage session queues drained
zookeeper_cnt_session_queues_drainedCnt Session Queues DrainedCount of session queues drained
zookeeper_sum_session_queues_drainedSum Session Queues DrainedSum session queues drained
zookeeper_sessionless_connections_expiredSessionless Connections Expiredsessionless connections expired
zookeeper_snap_countSnap Countsnap count
zookeeper_avg_snapshottimeAvg SnapshottimesecondsAverage snapshottime
zookeeper_cnt_snapshottimeCnt SnapshottimesecondsCount of snapshottime
zookeeper_sum_snapshottimeSum SnapshottimesecondsSum snapshottime
zookeeper_stale_repliesStale Repliesstale replies
zookeeper_stale_requestsStale Requestsstale requests
zookeeper_stale_requests_droppedStale Requests Droppedstale requests dropped
zookeeper_stale_sessions_expiredStale Sessions Expiredstale sessions expired
zookeeper_avg_startup_snap_load_timeAvg Startup Snap Load TimesecondsAverage startup snap load time
zookeeper_cnt_startup_snap_load_timeCnt Startup Snap Load TimesecondsCount of startup snap load time
zookeeper_sum_startup_snap_load_timeSum Startup Snap Load TimesecondsSum startup snap load time
zookeeper_avg_startup_txns_load_timeAvg Startup Txns Load TimesecondsAverage startup txns load time
zookeeper_cnt_startup_txns_load_timeCnt Startup Txns Load TimesecondsCount of startup txns load time
zookeeper_sum_startup_txns_load_timeSum Startup Txns Load TimesecondsSum startup txns load time
zookeeper_avg_startup_txns_loadedAvg Startup Txns LoadedAverage startup txns loaded
zookeeper_cnt_startup_txns_loadedCnt Startup Txns LoadedCount of startup txns loaded
zookeeper_sum_startup_txns_loadedSum Startup Txns LoadedSum startup txns loaded
zookeeper_avg_sync_process_timeAvg Sync Process TimesecondsAverage sync process time
zookeeper_cnt_sync_process_timeCnt Sync Process TimesecondsCount of sync process time
zookeeper_sum_sync_process_timeSum Sync Process TimesecondsSum sync process time
zookeeper_avg_sync_processor_batch_sizeAvg Sync Processor Batch SizeAverage sync processor batch size
zookeeper_cnt_sync_processor_batch_sizeCnt Sync Processor Batch SizeCount of sync processor batch size
zookeeper_sum_sync_processor_batch_sizeSum Sync Processor Batch SizeSum sync processor batch size
zookeeper_avg_sync_processor_queue_and_flush_time_msAvg Sync Processor Queue And Flush Time MsmillisecondsAverage sync processor queue and flush time
zookeeper_cnt_sync_processor_queue_and_flush_time_msCnt Sync Processor Queue And Flush Time MsmillisecondsCount of sync processor queue and flush time
zookeeper_sum_sync_processor_queue_and_flush_time_msSum Sync Processor Queue And Flush Time MsmillisecondsSum sync processor queue and flush time
zookeeper_avg_sync_processor_queue_flush_time_msAvg Sync Processor Queue Flush Time MsmillisecondsAverage sync processor queue flush time
zookeeper_cnt_sync_processor_queue_flush_time_msCnt Sync Processor Queue Flush Time MsmillisecondsCount of sync processor queue flush time
zookeeper_sum_sync_processor_queue_flush_time_msSum Sync Processor Queue Flush Time MsmillisecondsSum sync processor queue flush time
zookeeper_avg_sync_processor_queue_sizeAvg Sync Processor Queue SizeAverage sync processor queue size
zookeeper_cnt_sync_processor_queue_sizeCnt Sync Processor Queue SizeCount of sync processor queue size
zookeeper_sum_sync_processor_queue_sizeSum Sync Processor Queue SizeSum sync processor queue size
zookeeper_avg_sync_processor_queue_time_msAvg Sync Processor Queue Time MsmillisecondsAverage sync processor queue time
zookeeper_cnt_sync_processor_queue_time_msCnt Sync Processor Queue Time MsmillisecondsCount of sync processor queue time
zookeeper_sum_sync_processor_queue_time_msSum Sync Processor Queue Time MsmillisecondsSum sync processor queue time
zookeeper_sync_processor_request_queuedSync Processor Request Queuedsync processor request queued
zookeeper_avg_time_waiting_empty_pool_in_commit_processor_read_msAvg Time Waiting Empty Pool In Commit Processor Read MsmillisecondsAverage time waiting empty pool in commit processor read
zookeeper_cnt_time_waiting_empty_pool_in_commit_processor_read_msCnt Time Waiting Empty Pool In Commit Processor Read MsmillisecondsCount of time waiting empty pool in commit processor read
zookeeper_sum_time_waiting_empty_pool_in_commit_processor_read_msSum Time Waiting Empty Pool In Commit Processor Read MsmillisecondsSum time waiting empty pool in commit processor read
zookeeper_tls_handshake_exceededTls Handshake Exceededtls handshake exceeded
zookeeper_unrecoverable_error_countUnrecoverable Error Countunrecoverable error count
zookeeper_avg_updatelatencyAvg UpdatelatencyAverage update latency
zookeeper_cnt_updatelatencyCnt UpdatelatencyCount of update latency
zookeeper_sum_updatelatencySum UpdatelatencySum update latency
zookeeper_uptimeUptimesecondsZookeper uptime
zookeeper_avg_write_batch_time_in_commit_processorAvg Write Batch Time In Commit ProcessorAverage write batch time in commit processor
zookeeper_cnt_write_batch_time_in_commit_processorCnt Write Batch Time In Commit ProcessorCount of write batch time in commit processor
zookeeper_sum_write_batch_time_in_commit_processorSum Write Batch Time In Commit ProcessorSum write batch time in commit processor
zookeeper_avg_write_commit_proc_issuedAvg Write Commit Proc IssuedAverage write commit proc issued
zookeeper_cnt_write_commit_proc_issuedCnt Write Commit Proc IssuedCount of write commit proc issued
zookeeper_sum_write_commit_proc_issuedSum Write Commit Proc IssuedSum write commit proc issued
zookeeper_avg_write_commit_proc_req_queuedAvg Write Commit Proc Req QueuedAverage write commit proc req queued
zookeeper_cnt_write_commit_proc_req_queuedCnt Write Commit Proc Req QueuedCount of write commit proc req queued
zookeeper_sum_write_commit_proc_req_queuedSum Write Commit Proc Req QueuedSum write commit proc req queued
zookeeper_avg_write_commitproc_time_msAvg Write Commitproc Time MsmillisecondsAverage write commit proc time
zookeeper_cnt_write_commitproc_time_msCnt Write Commitproc Time MsmillisecondsCount of write commit proc time
zookeeper_sum_write_commitproc_time_msSum Write Commitproc Time MsmillisecondsSum write commit proc time
zookeeper_avg_write_final_proc_time_msAvg Write Final Proc Time MsmillisecondsAverage write final proc time
zookeeper_cnt_write_final_proc_time_msCnt Write Final Proc Time MsmillisecondsCount of write final proc time
zookeeper_sum_write_final_proc_time_msSum Write Final Proc Time MsmillisecondsSum write final proc time