Skip to content

AxonOps — AI-Native Control Plane for Open Source Data Platforms

AxonOps Kafka Topics Dashboard Metrics Mapping

The Kafka Topics Dashboard provides detailed monitoring of individual topic performance and health. It tracks message throughput, byte rates, log sizes, segment counts, and offset progression to help manage and optimize topic performance.

Dashboard MetricDescriptionAttributes
Topic Throughput Metrics
kaf_BrokerTopicMetrics_MessagesInPerSecRate of messages produced to topictopic={topic}
kaf_BrokerTopicMetrics_BytesInPerSecRate of bytes produced to topictopic={topic}
kaf_BrokerTopicMetrics_BytesOutPerSecRate of bytes consumed from topictopic={topic}
Log Metrics
kaf_Log_LogEndOffsetEnd offset of the logtopic={topic}, partition={partition}
kaf_Log_NumLogSegmentsNumber of log segmentstopic={topic}, partition={partition}
kaf_Log_SizeSize of the log in bytestopic={topic}, partition={partition}
Log Manager Metrics
kaf_LogManager_LogDirectoryOfflineNumber of offline log directorieslogDirectory={path}
// Messages in per topic
sum(kaf_BrokerTopicMetrics_MessagesInPerSec{axonfunction='rate',rack=~'$rack',host_id=~'$host_id',topic!='',topic='$topic'}) by (topic)
// Bytes in per topic
sum(kaf_BrokerTopicMetrics_BytesInPerSec{axonfunction='rate',rack=~'$rack',host_id=~'$host_id', topic!='', topic='$topic'}) by(topic)
// Bytes out per topic
sum(kaf_BrokerTopicMetrics_BytesOutPerSec{axonfunction='rate',rack=~'$rack',host_id=~'$host_id', topic!='',topic='$topic'}) by(topic)
// Messages in per topic (all topics)
sum(kaf_BrokerTopicMetrics_MessagesInPerSec{axonfunction='rate',rack=~'$rack',host_id=~'$host_id',topic=~'$topic',topic!=''}) by (topic)
// Bytes in per topic (all topics)
sum(kaf_BrokerTopicMetrics_BytesInPerSec{axonfunction='rate', topic='$topic',rack=~'$rack',host_id=~'$host_id',topic!=''}) by (topic)
// Bytes out per topic (all topics)
sum(kaf_BrokerTopicMetrics_BytesOutPerSec{axonfunction='rate', topic='$topic',rack=~'$rack',host_id=~'$host_id',topic!=''}) by (topic)
// End offset increase rate per topic
sum(rate(kaf_Log_LogEndOffset{rack=~'$rack',host_id=~'$host_id',topic!='',topic='$topic'}[5m])) by (topic)
// Number of log segments per topic
sum(kaf_Log_NumLogSegments{rack=~'$rack',host_id=~'$host_id',topic='$topic'}) by (topic)
// Log size per topic
sum(kaf_Log_Size{rack=~'$rack',host_id=~'$host_id', topic='$topic'}) by (topic)
// Log size per broker
sum(kaf_Log_Size{rack=~'$rack',host_id=~'$host_id', topic='$topic'}) by (host_id)
// Offline log directories
kaf_LogManager_LogDirectoryOffline{rack=~'$rack',host_id=~'$host_id'}

Overview Section

  • Empty row for spacing/organization

General

  • Messages In
  • Bytes In
  • Bytes Out
  • End Offset Increase Per Topic
  • No. Log Segments per topic

Log Size

  • Log size per Topic
  • Log size per Broker
  • Log Directories Offline

Throughput

  • Messages In Per Topic
  • Bytes In Per Topic
  • Bytes Out Per Topic
  • rack: Filter by rack location

  • host_id: Filter by specific host/broker

  • topic: Filter by specific topic(s)

  • percentile: Select percentile for latency metrics

  • groupBy: Group results by rack or host_id

Topic Throughput Monitoring

  • Monitor message and byte rates for capacity planning
  • Identify hot topics with disproportionate traffic
  • Compare bytes in vs bytes out for consumption patterns

Log Management

  • Monitor log sizes to prevent disk space issues
  • Track segment counts for retention policy effectiveness
  • Watch for rapid offset increases indicating high activity

Performance Analysis

  • High bytes in with low messages indicates large messages
  • Compare throughput across brokers for load distribution
  • Monitor topic growth trends for capacity planning

Log Directory Health

  • Offline log directories indicate disk failures
  • Requires immediate attention to prevent data loss
  • May trigger under-replicated partitions

Segment Management

  • High segment counts may impact performance
  • Consider adjusting segment.ms or segment.bytes
  • Monitor segment creation rate for tuning

Topic-Specific Tuning

  • Different topics may need different configurations
  • High-throughput topics may need more partitions
  • Consider compression for high-volume topics

Retention Monitoring

  • Log size indicates retention effectiveness
  • Monitor growth rate vs retention settings
  • Ensure cleanup policies are working correctly