Kafka Binder 的健康状况始终未知 [英] Health for Kafka Binder is always UNKNOWN

查看:32
本文介绍了Kafka Binder 的健康状况始终未知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试按照 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 HealthIndicatoris 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 的健康状况始终未知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆