Back to Skywalking

BookKeeper monitoring

docs/en/setup/backend/backend-bookkeeper-monitoring.md

10.4.07.1 KB
Original Source

BookKeeper monitoring

SkyWalking leverages OpenTelemetry Collector to collect metrics data from the BookKeeper and leverages OpenTelemetry Collector to transfer the metrics to OpenTelemetry receiver and into the Meter System. Kafka entity as a Service in OAP and on the `Layer: BOOKKEEPER.

Data flow

  1. BookKeeper exposes metrics through Prometheus endpoint.
  2. OpenTelemetry Collector fetches metrics from BookKeeper cluster via Prometheus Receiver and pushes metrics to SkyWalking OAP Server via OpenTelemetry gRPC exporter.
  3. The SkyWalking OAP Server parses the expression with MAL to filter/calculate/aggregate and store the results.`

Setup

  1. Set up BookKeeper Cluster.
  2. Set up OpenTelemetry Collector. The example for OpenTelemetry Collector configuration, refer to here.
  3. Config SkyWalking OpenTelemetry receiver.

BookKeeper Monitoring

Bookkeeper monitoring provides multidimensional metrics monitoring of BookKeeper cluster as Layer: BOOKKEEPER Service in the OAP. In each cluster, the nodes are represented as Instance.

BookKeeper Cluster Supported Metrics

Monitoring PanelMetric NameDescriptionData Source
Bookie Ledgers Countmeter_bookkeeper_bookie_ledgers_countThe number of the bookie ledgers.Bookkeeper Cluster
Bookie Ledger Writable Dirsmeter_bookkeeper_bookie_ledger_writable_dirsThe number of writable directories in the bookie.Bookkeeper Cluster
Bookie Ledger Dir Usagemeter_bookkeeper_bookie_ledger_dir_data_bookkeeper_ledgers_usageThe number of successfully created connections.Bookkeeper Cluster
Bookie Entries Countmeter_bookkeeper_bookie_entries_countThe number of the bookie write entries.Bookkeeper Cluster
Bookie Write Cache Sizemeter_bookkeeper_bookie_write_cache_sizeThe size of the bookie write cache (MB).Bookkeeper Cluster
Bookie Write Cache Entry Countmeter_bookkeeper_bookie_write_cache_countThe entry count in the bookie write cache.Bookkeeper Cluster
Bookie Read Cache Sizemeter_bookkeeper_bookie_read_cache_sizeThe size of the bookie read cache (MB).Bookkeeper Cluster
Bookie Read Cache Entry Countmeter_bookkeeper_bookie_read_cache_countThe entry count in the bookie read cache.Bookkeeper Cluster
Bookie Read Ratemeter_bookkeeper_bookie_read_rateThe bookie read rate (bytes/s).Bookkeeper Cluster
Bookie Write Ratemeter_bookkeeper_bookie_write_rateThe bookie write rate (bytes/s).Bookkeeper Cluster

BookKeeper Node Supported Metrics

Monitoring PanelMetric NameDescriptionData Source
JVM Memory Pool Usedmeter_bookkeeper_node_jvm_memory_pool_usedThe usage of the broker jvm memory pool.Bookkeeper Bookie
JVM Memorymeter_bookkeeper_node_jvm_memory_used
meter_bookkeeper_node_jvm_memory_committed
meter_bookkeeper_node_jvm_memory_initThe usage of the broker jvm memory.Bookkeeper Bookie
JVM Threadsmeter_bookkeeper_node_jvm_threads_current
meter_bookkeeper_node_jvm_threads_daemon
meter_bookkeeper_node_jvm_threads_peak
meter_bookkeeper_node_jvm_threads_deadlockedThe count of the jvm threads.Bookkeeper Bookie
GC Timemeter_bookkeeper_node_jvm_gc_collection_seconds_sumTime spent in a given JVM garbage collector in seconds.Bookkeeper Bookie
GC Countmeter_bookkeeper_node_jvm_gc_collection_seconds_countThe count of a given JVM garbage.Bookkeeper Bookie
Thread Executor Completedmeter_bookkeeper_node_thread_executor_completedThe count of the executor thread.Bookkeeper Bookie
Thread Executor Tasksmeter_bookkeeper_node_thread_executor_tasks_completed
meter_bookkeeper_node_thread_executor_tasks_rejected
meter_bookkeeper_node_thread_executor_tasks_failedThe count of the executor tasks.Bookkeeper Bookie
Pooled Threadsmeter_bookkeeper_node_high_priority_threads
meter_bookkeeper_node_read_thread_pool_threadsThe count of the pooled thread.Bookkeeper Bookie
Pooled Threads Max Queue Sizemeter_bookkeeper_node_high_priority_thread_max_queue_size
meter_bookkeeper_node_read_thread_pool_max_queue_sizeThe count of the pooled threads max queue size.Bookkeeper Bookie

Customizations

You can customize your own metrics/expression/dashboard panel. The metrics definition and expression rules are found in otel-rules/bookkeeper/bookkeeper-cluster.yaml, otel-rules/bookkeeper/bookkeeper-node.yaml. The Bookkeeper dashboard panel configurations are found in /config/ui-initialized-templates/bookkeeper.