You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The meter (MeterId{name='spring.kafka.listener', tags=[tag(error=none),tag(messaging.kafka.consumer.group=aaa),tag(messaging.operation=receive),tag(messaging.source.kind=topic),tag(messaging.source.name=bbb),tag(messaging.system=kafka),tag(spring.kafka.listener.id=org.springframework.kafka.KafkaListenerEndpointContainer#1-0)]}) registration has failed
Make sure: spring.kafka.listener.observation-enabled=true
Experiment with different combination of batch and non-batch @KafkaListener
Expected behavior
It cannot be accepted that adding batch listener breaks already working obsevations
When observability is enabled, metric for each listener should be registered with same set of tags, regardless listener is batch or non-batch). When some tag has no value, use placeholder "none"
In what version(s) of Spring for Apache Kafka are you seeing this issue?
3.3.6
Describe the bug
Batch
@KafkaListener
is not observable, non-batch is observable - it causes Prometheus metric conflict.When observability is enabled and there is one non-batch
@KafkaListener
, metrichttp://localhost:8080/actuator/prometheus?includedNames=spring_kafka_listener_seconds is ok:
When second, batch
@KafkaListener
is added, it breaks non-batch metricsLogs contains warning with explanation:
To Reproduce
Make sure:
spring.kafka.listener.observation-enabled=true
Experiment with different combination of batch and non-batch
@KafkaListener
Expected behavior
It cannot be accepted that adding batch listener breaks already working obsevations
When observability is enabled, metric for each listener should be registered with same set of tags, regardless listener is batch or non-batch). When some tag has no value, use placeholder "none"
Similar issue for MongoDB: spring-projects/spring-data-mongodb#4994
The text was updated successfully, but these errors were encountered: