Kafka Replica Metrics

Reference information for Kafka Replica Metrics

In addition to these base metrics, many aggregate metrics are available. If an entity type has parents defined, you can formulate all possible aggregate metrics using the formula base_metric_across_parents.

In addition, metrics for aggregate totals can be formed by adding the prefix total_ to the front of the metric name.

Use the type-ahead feature in the Cloudera Manager chart browser to find the exact aggregate metric name, in case the plural form does not end in "s".

For example, the following metric names may be valid for Kafka Replica:

  • kafka_in_sync_replicas_count_across_clusters
  • total_kafka_in_sync_replicas_count_across_clusters

Some metrics, such as alerts_rate, apply to nearly every metric context. Others only apply to a certain service or role.

kafka_in_sync_replicas_count

Description
The number of replicas of a partition is in sync.
Unit
partitions
Parents
cluster, kafka, kafka-kafka_broker, kafka_broker_topic, kafka_topic, rack
CDH Version
CDH 5, CDH 6, CDH 7

kafka_log_end_offset

Description
The offset of the next message that will be appended to the log
Unit
message.units.offset
Parents
cluster, kafka, kafka-kafka_broker, kafka_broker_topic, kafka_topic, rack
CDH Version
CDH 5, CDH 6, CDH 7

kafka_log_start_offset

Description
The earliest message offset in the log
Unit
message.units.offset
Parents
cluster, kafka, kafka-kafka_broker, kafka_broker_topic, kafka_topic, rack
CDH Version
CDH 5, CDH 6, CDH 7

kafka_num_log_segments

Description
The number of segments in the log
Unit
message.units.segments
Parents
cluster, kafka, kafka-kafka_broker, kafka_broker_topic, kafka_topic, rack
CDH Version
CDH 5, CDH 6, CDH 7

kafka_replicas_count

Description
The number of replicas of a partition.
Unit
partitions
Parents
cluster, kafka, kafka-kafka_broker, kafka_broker_topic, kafka_topic, rack
CDH Version
CDH 5, CDH 6, CDH 7

kafka_size

Description
The size of the log
Unit
bytes
Parents
cluster, kafka, kafka-kafka_broker, kafka_broker_topic, kafka_topic, rack
CDH Version
CDH 5, CDH 6, CDH 7

kafka_under_replicated_count

Description
The number of under replicated partitions of a partition.
Unit
partitions
Parents
cluster, kafka, kafka-kafka_broker, kafka_broker_topic, kafka_topic, rack
CDH Version
CDH 5, CDH 6, CDH 7