Project: SkyWalking (Observability and Analysis / Observability)
File: backend-pulsar-monitoring.md

SkyWalking leverages OpenTelemetry Collector to collect metrics data in Prometheus format from the Pulsar and transfer the metrics to and into the . Kafka entity as a `Service` in OAP and on the `Layer: PULSAR. Pulsar exposes metrics through Prometheus endpoint. OpenTelemetry Collector fetches metrics from Pulsar cluster via Prometheus Receiver and pushes metrics to SkyWalking OAP Server via OpenTelemetry gRPC exporter. The SkyWalking OAP Server parses the expression with to filter/calculate/aggregate and store the results.` Set up . (Pulsar cluster includes pulsar broker cluster and Bookkeeper bookie cluster.) Set up . The example for OpenTelemetry Collector configuration, refer to . Config SkyWalking . Pulsar monitoring provides multidimensional metrics monitoring of Pulsar cluster as `Layer: PULSAR` `Service` in the OAP. In each cluster, the nodes are represented as `Instance`. | Monitoring Panel | Metric Name | Description | Data Source | |-|--|--|-| | Total Topics | meterpulsartotal_topics | The number of Pulsar topics in this cluster. | Pulsar Cluster | | Total Subscriptions | meterpulsartotal_subscriptions | The number of Pulsar subscriptions in this cluster. | Pulsar Cluster | | Total Producers | meterpulsartotal_producers | The number of active producers connected to this cluster. | Pulsar Cluster | | Total Consumers | meterpulsartotal_consumers | The number of active consumers connected to this cluster. | Pulsar Cluster | | Message Rate In | meterpulsarmessageratein | The total message rate coming into this cluster (message per second). | Pulsar Cluster | | Message Rate Out | meterpulsarmessagerateout | The total message rate going out from this cluster (message per second). | Pulsar Cluster | | Throughput In | meterpulsarthroughput_in | The total throughput coming into this cluster (byte per second). | Pulsar Cluster | | Throughput Out | meterpulsarthroughput_out | The total throughput going out from this cluster (byte per second). | Pulsar Cluster | | Storage Size | meterpulsarstorage_size | The total storage size of all topics in this broker (in

| Pulsar Cluster | | Storage Logical Size | meterpulsarstoragelogicalsize | The storage size of all topics in this broker without replicas (in bytes). | Pulsar Cluster | | Storage Write Rate | meterpulsarstoragewriterate | The total message batches (entries) written to the storage for this broker (message batch per second). | Pulsar Cluster | | Storage Read Rate | meterpulsarstoragereadrate | The total message batches (entries) read from the storage for this broker (message batch per second). | Pulsar Cluster | | Monitoring Panel | Metric Name | Description | Data Source | ||-||-| | Active Connections | meterpulsarbrokeractiveconnections | The number of active connections. | Pulsar Broker | | Total Connections | meterpulsarbrokertotalconnections | The total number of connections. | Pulsar Broker | | Connection Create Success Count | meterpulsarbrokerconnectioncreatesuccesscount | The number of successfully created connections. | Pulsar Broker | | Connection Create Fail Count | meterpulsarbrokerconnectioncreatefailcount | The number of failed connections. | Pulsar Broker | | Connection Closed Total Count | meterpulsarbrokerconnectionclosedtotalcount | The total number of closed connections. | Pulsar Broker | | JVM Buffer Pool Used | meterpulsarbrokerjvmbufferpoolused_bytes | The usage of jvm buffer pool. | Pulsar Broker | | JVM Memory Pool Used | meterpulsarbrokerjvmmemorypoolused | The usage of jvm memory pool. | Pulsar Broker | | JVM Memory | meterpulsarbrokerjvmmemoryinit <br /> meterpulsarbrokerjvmmemoryused <br /> meterpulsarbrokerjvmmemory_committed | The usage of jvm memory. | Pulsar Broker | | JVM Threads | meterpulsarbrokerjvmthreadscurrent <br /> meterpulsarbrokerjvmthreadsdaemon <br /> meterpulsarbrokerjvmthreadspeak <br /> meterpulsarbrokerjvmthreadsdeadlocked | The usage of jvm threads. | Pulsar Broker | | GC Time | meterpulsarbrokerjvmgccollectionseconds_sum | Time spent in a given JVM garbage collector in seconds. | Pulsar Broker | | GC Count | meterpulsarbrokerjvmgccollectionseconds_count | The count of a given JVM garbage collector. | Pulsar Broker | You can customize your own metrics/expression/dashboard panel. The metrics definition and expression rules are found in `otel-rules/pulsar/pulsar-cluster.yaml, otel-rules/pulsar/pulsar-broker.yaml`. The Pulsar dashboard panel configurations are found in `ui-initialized-templates/pulsar`.