Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NameTypeDescription
kafka.controller:type=KafkaController,name=ControlledShutdownBrokerCountIntegerThe number of brokers currently in controlled shutdown.
kafka.controller:type=KafkaController,name=BrokerRegistrationState.kafka-,broker=XInteger

A per-broker metric which displays the following values for the states:

  • 0 when the broker is unfenced/active
  • 1 when the broker is fenced
  • 2 when the broker is in controlled shutdown

This metric is removed when a broker is unregistered. This state is derived from the registration records contained in the metadata log.

kafka.controller:type=KafkaController,name=TimeSinceLastHeartbeatReceivedMs.kafka-,broker=XIntegerA per-broker metric which reports the time in milliseconds since the last heartbeat received by the controller. The maximum value of this metric is the heartbeat session timeout limit, because the map whose values are being exposed removes the broker's contact time when the broker gets fenced. Only the active controller reports this metric since it's soft state contained in BrokerHeartbeatTracker.

We will use tagging for the per-broker metrics where X represents the ID of the broker.

Rationale

These metrics would be useful for monitoring the following use cases:

...