Files
apache--hertzbeat/home/docs/help/kafka.md
T
wehub-resource-sync c8cebdfeee
MCP Bash Server CI / Test MCP Bash Server (dev) (push) Has been cancelled
MCP Bash Server CI / Test MCP Bash Server (release) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:11:39 +08:00

4.7 KiB
Raw Blame History

id, title, sidebar_label, keywords
id title sidebar_label keywords
kafka MonitorApache Kafka Apache Kafka
open source monitoring tool
open source apache kafka monitoring tool
monitoring apache kafka metrics

Collect and monitor the general performance Metrics of Apache Kafka.

Protocol UseJMX

Kafka Enable JMX Protocol

  1. Install Kafka

  2. Modify kafka-server-start.sh

Append content in kafka-server-start.sh, Attention Replace Port And IP.

export JMX_PORT=9999;
export KAFKA_JMX_OPTS="-Djava.rmi.server.hostname=ip地址 -Dcom.sun.management.jmxremote.rmi.port=9999 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false";

# Already Has 
exec $base_dir/kafka-run-class.sh $EXTRA_ARGS kafka.Kafka "$@"

Configuration parameter

Parameter name Parameter help description
Monitoring Host Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://)
Monitoring name Identify the name of this monitoring. The name needs to be unique
Port Port provided by JMX
Username JMX connection user name, optional
Password JMX connection password, optional
Collection interval Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds
Whether to detect Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful
Description remarks For more information about identifying and describing this monitoring, users can note information here

Collection Metrics

Metrics Setserver_info

Metric name Metric unit Metric help description
Version Kafka Version
StartTimeMs ms Start Time
CommitId Version Commit ID

Metrics Setmemory_pool

Metric name Metric unit Metric help description
name metrics name
committed kb total size
init kb init size
max kb max size
used kb used size

Metrics Setactive_controller_count

Metric name Metric unit Metric help description
Value server active controller count

Metrics Setbroker_partition_count

Metric name Metric unit Metric help description
Value broker partition count

Metrics Setbroker_leader_count

Metric name Metric unit Metric help description
Value broker leader count

Metrics Setbroker_handler_avg_percent

Metric name Metric unit Metric help description
EventType event type
RateUnit rate unit
Count percent count
OneMinuteRate % One Minute Rate
FiveMinuteRate % Five Minute Rate
MeanRate % Mean Rate
FifteenMinuteRate % Fifteen Minute Rate