我将我的应用程序从SpringBoot 2.1.18升级到SpringBoot 2.5.7,并且在升级后,diskSpace等健康信息不再出现在SpringBootAdmin UI中。我使用的是SBA 2.0.0,并且没有改变它。
健康端点仍然包括它们,但是顶层键已从details重命名为components。我以为这就是让SBA困惑的地方,但更奇怪的是,尽管如此,我的自定义健康指示器仍然显示在SBA中。
知道我怎么解决这个问题吗?
老
{
"status": "OUT_OF_SERVICE",
"details": {
"myCustomHealthIndicator": {
"status": "OUT_OF_SERVICE",
"details": {
"Reason": "Suspect State message received",
"StateText": "Connection failed; Channel disconnected"
}
},
"diskSpace": {
"status": "UP",
"details": {
"total": 107361579008,
"free": 94436716544,
"threshold": 10485760
}
},
"refreshScope": {
"status": "UP"
}
}
}新
{
"status": "OUT_OF_SERVICE",
"components": {
"diskSpace": {
"status": "UP",
"details": {
"total": 107361579008,
"free": 100102447104,
"threshold": 10485760,
"exists": true
}
},
"livenessState": {
"status": "UP"
},
"ping": {
"status": "UP"
},
"readinessState": {
"status": "UP"
},
"myCustomHealthIndicator": {
"status": "OUT_OF_SERVICE",
"details": {
"Reason": "Suspect State message received",
"StateText": "Connection failed; Channel disconnected"
}
}
},
"groups": [
"liveness",
"readiness"
]
}发布于 2021-12-07 00:13:56
通过升级到SpringBootAdminServer2.5.4( de.codecentric:spring-boot-admin-starter-server:jar:2.5.4 )解决问题
https://stackoverflow.com/questions/70220579
复制相似问题