问题描述
当我尝试按照 Spring Cloud Stream 参考文档
健康端点返回:
binders":{"status":"UNKNOWN","kafka":{"status":"UNKNOWN"}}}
我的配置包含如下文档:
my configuration contains as documented:
management.health.binders.enabled=true
我已经调试了 BindersHealthIndicatorAutoConfiguration
并注意到,binderContext
中没有注册 HealthIndicator
.我是否必须将自定义 HealthIndicator
注册为 bean 或需要哪些步骤?
I already debugged BindersHealthIndicatorAutoConfiguration
and noticed, that no HealthIndicator
is registered in the binderContext
. Do I have to register a custom HealthIndicator
as bean or what steps are necessary?
推荐答案
看起来像是文档中的错误.默认情况下,活页夹健康指标处于启用状态.如果要禁用,则需要指定 management.health.binders.enabled=false
.
It looks like a bug in the documentation. By default, the binders health indicators are enabled. If you want to disable, then you would need to specify management.health.binders.enabled=false
.
感谢您报告此事.
这篇关于Kafka Binder 的健康状况始终未知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!