Spring-Cloud-Stream-Kafka自定义运行状况检查未提供Kafka身份

时间:2019-05-23 10:33:01

标签: java spring-kafka

我尝试按照链接https://stackoverflow.com/questions/51162841/spring-cloud-stream-kafka-custom-health-check-not-working -----中设置的相同示例添加自定义Kafka运行状况检查,但是我没有得到想要的结果。 当我点击链接localhost:8080/actuator/health时,它会给出

{
    "status": "UP",
    "details": {
        "healthIndicator": {
            "status": "UP"
        },
        "diskSpace": {
            "status": "UP",
            "details": {
                "total": 274622050304,
                "free": 269102321664,
                "threshold": 10485760
            }
        }
    }
}

它应该像

"binders": { "status": "UP", "kafka": { "status": "UP", "healthIndicator": { "status": "UP" } } }

有人可以对此提出建议吗?

0 个答案:

没有答案