Skip to main content
Version: 1.10.0

TubeMQ Metrics

1 Introduction to TubeMQ metric set

TubeMQ has supported the output of JMX metric items since version 0.12.0. At present, it mainly adds overall operating metrics to the Master and Broker modules; in the future, we will consider adding corresponding metrics to the Producer and Consumer modules. At the same time, the metrics of the Master and Broker modules are implemented as needed to continue to expand.

The indicator output format currently only supports the standard JMX access method, next, Prometheus and HTTP access mode will be added. The metrics' values are obtained through the getMetrics() and getAndReSetMetrics() methods: getMetrics() only pulls the indicator data, and does not change the current data metric value; the getAndReSetMetrics() method performs the pull of the current metric data, for the Counter and The maximum and minimum metrics are reset to facilitate business re-statistics of system operation.

2 Master Metric Items

Metric ItemMetric TypeDesc
consume_group_cntGaugeThe number of consumer groups currently online
consume_group_timeout_cntCounterThe total number of consumer group timeouts since the last count
client_balance_group_cntGaugeThe number of consumer groups allocated by the currently registered client partition
clt_balance_timeout_cntCounterThe total number of timeouts of client partition allocation consumer group timeouts since the last statistics
consumer_online_cntGaugeNumber of consumers currently online
consumer_timeout_cntCounterThe total number of consumer timeout exits since the last count
producer_online_cntGaugeThe number of producers currently online
producer_timeout_cntCounterThe total number of producer timeout exits since the last count
broker_configure_cntGaugeNumber of Broker records currently configured
broker_online_cntGaugeNumber of Broker nodes currently online
broker_timeout_cntCounterThe total number of broker node timeouts since the last count
broker_abn_current_cntGaugeNumber of Broker nodes that currently report exceptions
broker_abn_total_cntCounterThe number of Broker nodes that have reported exceptions since the last statistics
broker_fbd_current_cntGaugeThe number of Broker nodes that are currently reporting exceptions and are prohibited from serving
broker_fbd_total_cntCounterThe number of Broker nodes that have reported exceptions and are prohibited from serving since the last statistics
svrbalance_durationGaugeCurrent server load balancing continuous-time
svrbalance_duration_minGaugeCurrent server load balancing minimum time consumption
svrbalance_duration_maxGaugeCurrent server load balancing maximum time consumption
svrbal_reset_duration_minGaugeThe current minimum equalization time to reset the equalization
svrbal_reset_duration_maxGaugeThe maximum equalization time consumption of the current reset equalization
svrbal_con_consumer_cntGaugeThe number of clients currently processing connection tasks
svrbal_discon_consumer_cntGaugeThe number of clients currently processing disconnected tasks

3 Broker Metric Items

Metric ItemMetric TypeDesc
fSync_duration_minGaugeCurrent data synchronization to file minimum time consumption
fSync_duration_maxGaugeMaximum time consumption of current data synchronization to file
zkSync_duration_minGaugeCurrent data synchronization to ZooKeeper minimum time consumption
zkSync_duration_maxGaugeMaximum time consumption of current data synchronization to ZooKeeper
zk_exception_cntCounterNumber of exceptions thrown during ZooKeeper operations
online_timeout_cntCounterThe total number of times the master reported the heartbeat timeout of this node
io_exception_cntCounterTotal number of IOExceptions reported by reading and writing data disks
consumer_online_cntGaugeTotal number of consumers registered to this node
consumer_timeout_cntCounterThe total number of heartbeat timeouts for consumers registered on this node

Back to top