This documentation has an index for AI agents at /llms.txt. A Markdown version of this page is available at https://explorer.opentelemetry.io/collector/components/contrib/kafkametricsreceiver.md.

Kafka Metrics Receiver

OpenTelemetry Collector receiver · contrib distribution

The Kafka Metrics Receiver collects kafka metrics (brokers, topics, partitions, consumer groups) from a kafka server, and converts them into otlp.

  • Component ID: contrib-kafkametricsreceiver
  • Name: kafkametricsreceiver
  • Type: receiver
  • Distribution: contrib
  • Repository: opentelemetry-collector-contrib

Stability

LevelSignals
betametrics

Metrics

MetricTypeValue typeUnitStabilityEnabledAttributesDescription
kafka.broker.log_retention_periodgaugeintsdevelopmentnobroker (string)log retention time (s) of a broker.
kafka.brokerssumint{brokers}developmentyesNumber of brokers in the cluster.
kafka.consumer_group.laggaugeint1developmentyesgroup (string), partition (int), topic (string)Current approximate lag of consumer group at partition of topic
kafka.consumer_group.lag_sumgaugeint1developmentyesgroup (string), topic (string)Current approximate sum of consumer group lag across all partitions of topic
kafka.consumer_group.memberssumint{members}developmentyesgroup (string)Count of members in the consumer group
kafka.consumer_group.offsetgaugeint1developmentyesgroup (string), partition (int), topic (string)Current offset of the consumer group at partition of topic
kafka.consumer_group.offset_sumgaugeint1developmentyesgroup (string), topic (string)Sum of consumer group offset across partitions of topic
kafka.partition.current_offsetgaugeint1developmentyespartition (int), topic (string)Current offset of partition of topic.
kafka.partition.oldest_offsetgaugeint1developmentyespartition (int), topic (string)Oldest offset of partition of topic
kafka.partition.replicassumint{replicas}developmentyespartition (int), topic (string)Number of replicas for partition of topic
kafka.partition.replicas_in_syncsumint{replicas}developmentyespartition (int), topic (string)Number of synchronized replicas of partition
kafka.topic.log_retention_periodgaugeintsdevelopmentnotopic (string)log retention period of a topic (s).
kafka.topic.log_retention_sizegaugeintBydevelopmentnotopic (string)log retention size of a topic in Bytes, The value (-1) indicates infinite size.
kafka.topic.min_insync_replicasgaugeint{replicas}developmentnotopic (string)minimum in-sync replicas of a topic.
kafka.topic.partitionssumint{partitions}developmentyestopic (string)Number of partitions in topic.
kafka.topic.replication_factorgaugeint1developmentnotopic (string)replication factor of a topic.

Attributes

AttributeTypeDescription
brokerstringThe ID of the kafka broker
groupstringThe ID (string) of a consumer group
partitionintThe number (integer) of the partition
topicstringThe ID (integer) of a topic

Data

  • JSON (latest): /data/collector/components/contrib-kafkametricsreceiver/latest.json
  • JSON (pinned): /data/collector/components/contrib-kafkametricsreceiver/contrib-kafkametricsreceiver-5db2039480e3.json
  • Explore: /collector/components/contrib/kafkametricsreceiver