我尝试按照链接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" } } }
,
有人可以对此提出建议吗?