This version is still in development and is not considered stable yet. For the latest stable version, please use Spring for Apache Kafka 3.2.4!spring-doc.cn

This version is still in development and is not considered stable yet. For the latest stable version, please use Spring for Apache Kafka 3.2.4!spring-doc.cn

Observability - Metrics

Below you can find a list of all metrics declared by this project.spring-doc.cn

Listener Observation

Observation for Apache Kafka listeners.spring-doc.cn

Metric name spring.kafka.listener (defined by convention class KafkaListenerObservation$DefaultKafkaListenerObservationConvention). Type timer.spring-doc.cn

Metric name spring.kafka.listener.active (defined by convention class KafkaListenerObservation$DefaultKafkaListenerObservationConvention). Type long task timer.spring-doc.cn

KeyValues that are added after starting the Observation might be missing from the *.active metrics.
Micrometer internally uses nanoseconds for the baseunit. However, each backend determines the actual baseunit. (i.e. Prometheus uses seconds)

Name of the enclosing class KafkaListenerObservation.spring-doc.cn

All tags must be prefixed with spring.kafka.listener prefix!
Table 1. Low cardinality Keys

Descriptionspring-doc.cn

spring.kafka.listener.id (required)spring-doc.cn

Listener id (or listener container bean name).spring-doc.cn

Template Observation

Observation for KafkaTemplates.spring-doc.cn

Metric name spring.kafka.template (defined by convention class KafkaTemplateObservation$DefaultKafkaTemplateObservationConvention). Type timer.spring-doc.cn

Metric name spring.kafka.template.active (defined by convention class KafkaTemplateObservation$DefaultKafkaTemplateObservationConvention). Type long task timer.spring-doc.cn

KeyValues that are added after starting the Observation might be missing from the *.active metrics.
Micrometer internally uses nanoseconds for the baseunit. However, each backend determines the actual baseunit. (i.e. Prometheus uses seconds)

Name of the enclosing class KafkaTemplateObservation.spring-doc.cn

All tags must be prefixed with spring.kafka.template prefix!
Table 2. Low cardinality Keys

Descriptionspring-doc.cn

spring.kafka.template.name (required)spring-doc.cn

Bean name of the template.spring-doc.cn

KeyValues that are added after starting the Observation might be missing from the *.active metrics.
Micrometer internally uses nanoseconds for the baseunit. However, each backend determines the actual baseunit. (i.e. Prometheus uses seconds)
All tags must be prefixed with spring.kafka.listener prefix!
Table 1. Low cardinality Keys

Descriptionspring-doc.cn

spring.kafka.listener.id (required)spring-doc.cn

Listener id (or listener container bean name).spring-doc.cn

KeyValues that are added after starting the Observation might be missing from the *.active metrics.
Micrometer internally uses nanoseconds for the baseunit. However, each backend determines the actual baseunit. (i.e. Prometheus uses seconds)
All tags must be prefixed with spring.kafka.template prefix!
Table 2. Low cardinality Keys

Descriptionspring-doc.cn

spring.kafka.template.name (required)spring-doc.cn

Bean name of the template.spring-doc.cn

Observability - Spans

Below you can find a list of all spans declared by this project.spring-doc.cn

Listener Observation Span

Observation for Apache Kafka listeners.spring-doc.cn

Span name spring.kafka.listener (defined by convention class KafkaListenerObservation$DefaultKafkaListenerObservationConvention).spring-doc.cn

Name of the enclosing class KafkaListenerObservation.spring-doc.cn

All tags must be prefixed with spring.kafka.listener prefix!
Table 3. Tag Keys

Namespring-doc.cn

Descriptionspring-doc.cn

spring.kafka.listener.id (required)spring-doc.cn

Listener id (or listener container bean name).spring-doc.cn

Template Observation Span

Observation for KafkaTemplates.spring-doc.cn

Span name spring.kafka.template (defined by convention class KafkaTemplateObservation$DefaultKafkaTemplateObservationConvention).spring-doc.cn

Name of the enclosing class KafkaTemplateObservation.spring-doc.cn

All tags must be prefixed with spring.kafka.template prefix!
Table 4. Tag Keys

Namespring-doc.cn

Descriptionspring-doc.cn

spring.kafka.template.name (required)spring-doc.cn

Bean name of the template.spring-doc.cn

All tags must be prefixed with spring.kafka.listener prefix!
Table 3. Tag Keys

Namespring-doc.cn

Descriptionspring-doc.cn

spring.kafka.listener.id (required)spring-doc.cn

Listener id (or listener container bean name).spring-doc.cn

All tags must be prefixed with spring.kafka.template prefix!
Table 4. Tag Keys

Namespring-doc.cn

Descriptionspring-doc.cn

spring.kafka.template.name (required)spring-doc.cn

Bean name of the template.spring-doc.cn

Observability - Conventions

Below you can find a list of all GlobalObservationConvention and ObservationConvention declared by this project.spring-doc.cn

Table 5. ObservationConvention implementations

ObservationConvention Class Namespring-doc.cn

Applicable ObservationContext Class Namespring-doc.cn

KafkaListenerObservationspring-doc.cn

KafkaRecordReceiverContextspring-doc.cn

KafkaListenerObservation.DefaultKafkaListenerObservationConventionspring-doc.cn

KafkaRecordReceiverContextspring-doc.cn

KafkaListenerObservationConventionspring-doc.cn

KafkaRecordReceiverContextspring-doc.cn

KafkaTemplateObservationspring-doc.cn

KafkaRecordSenderContextspring-doc.cn

KafkaTemplateObservation.DefaultKafkaTemplateObservationConventionspring-doc.cn

KafkaRecordSenderContextspring-doc.cn

KafkaTemplateObservationConventionspring-doc.cn

KafkaRecordSenderContextspring-doc.cn

Table 5. ObservationConvention implementations

ObservationConvention Class Namespring-doc.cn

Applicable ObservationContext Class Namespring-doc.cn

KafkaListenerObservationspring-doc.cn

KafkaRecordReceiverContextspring-doc.cn

KafkaListenerObservation.DefaultKafkaListenerObservationConventionspring-doc.cn

KafkaRecordReceiverContextspring-doc.cn

KafkaListenerObservationConventionspring-doc.cn

KafkaRecordReceiverContextspring-doc.cn

KafkaTemplateObservationspring-doc.cn

KafkaRecordSenderContextspring-doc.cn

KafkaTemplateObservation.DefaultKafkaTemplateObservationConventionspring-doc.cn

KafkaRecordSenderContextspring-doc.cn

KafkaTemplateObservationConventionspring-doc.cn

KafkaRecordSenderContextspring-doc.cn