Micrometer Metrics
janchristian-haddorp opened this issue · 3 comments
After adding Micrometer listener as decscribed on reference docs several Prometheus metrics are provided. But there are all quite low level. Is there a description (even in code) of the available metrics? Are there simple metrics like number of sent/received records
available?
Project dependencies
Spring Boot 3.1.5
org.springframework.boot:spring-boot-starter-webflux
org.springframework.kafka:spring-kafka
io.projectreactor.kafka:reactor-kafka
Code examples
The examples linked on the docs seems being all not metrics/observability releated. Are there further code samples?
Following metrics found for producer...
kafka.producer.record.send.rate
kafka.producer.record.send.total
And consumer...
kafka_consumer_fetch_manager_records_consumed_rate
kafka_consumer_fetch_manager_records_consumed_total
So, main question seems being answered; but some more details/links on ref docs would be appreciated.
These metrics are maintained by the kafka-clients
library; they are simply exposed here by adding the listeners; you need to ask the general Kafka community, either on Stack Overflow on one of their mailing lists.
You can find descriptions of the kafka-clients
' metrics here: https://kafka.apache.org/documentation/#monitoring