Rabbit 绑定状况指标
The health indicator for Rabbit binder delegates to the one provided from Spring Boot. For more information on this, see this.
您可以使用属性 management.health.binders.enabled 在绑定器级别禁用此运行状况指标,并将其设置为 false。在多绑定器环境中,必须在绑定器环境属性上设置此属性。
当健康指标被禁用时,您应该在健康量表端点中看到如下所示的内容:
"rabbit": {
"status": "UNKNOWN"
}
在Spring Boot级别,如果你想禁用Rabbit健康指标,需要将属性设置为management.health.rabbit.enabled并设置为false。