我需要向我的服务中添加运行状况检查,并且SPRING完全适合我,除了输出数据格式(org.springframework.boot.actuate.health.Health)。怎么改变呢? 我尝试使用自定义HealthEndpointWebExtension创建我的“运行状况检查”配置,并禁用HealthEndpointAutoConfiguration。但我不想为每项服务添加自动配置排除项。
预期格式:
{
status: up/down/degraded
timestamp: timestamp
up: {
subsystem1: details about subsystem1 (String)
subsystem2: details about subsystem2 (String)
. . .
}
down: {
subsystem3: details about subsystem3 (String)
subsystem4: details about subsystem4 (String)
. . .
}
degraded: {
subsystem5: details about subsystem5 (String)
subsystem6: details about subsystem6 (String)
. . .
}
}