I am using /actuator/prometheus
endpoint for its kafka_consumer_*
metrics. Upgrading from Spring Boot 2.3.1.RELEASE
to 2.3.2.RELEASE
, is showing me a lot of these "extra" logs - whenever there is a failure to bind:
INFO io.micrometer.core.instrument.binder.kafka.KafkaMetrics.lambda$checkAndBindMetrics$1[173] -- Failed to bind meter: kafka.consumer.fetch.manager.[metric1]...However, this could happen and might be restored in the next refresh.
INFO io.micrometer.core.instrument.binder.kafka.KafkaMetrics.lambda$checkAndBindMetrics$1[173] -- Failed to bind meter: kafka.consumer.fetch.manager.[metric2]...However, this could happen and might be restored in the next refresh.
INFO io.micrometer.core.instrument.binder.kafka.KafkaMetrics.lambda$checkAndBindMetrics$1[173] -- Failed to bind meter: kafka.consumer.fetch.manager.[metric3]...However, this could happen and might be restored in the next refresh.
INFO io.micrometer.core.instrument.binder.kafka.KafkaMetrics.lambda$checkAndBindMetrics$1[173] -- Failed to bind meter: kafka.consumer.fetch.manager.[metric4]...However, this could happen and might be restored in the next refresh.
It is an INFO
log level with the somewhat reassuring ending words of However, this could happen and might be restored in the next refresh.
, therefore, not meant to be alarming, but what is its purpose for showing it in this upgrade?
In the meantime, i have suppressed them(the extra logs) with:
logging.level.io.micrometer.core.instrument.binder.kafka.KafkaMetrics=WARN