如何添加额外的健康指标?

时间:2021-03-27 17:14:44

标签: jhipster spring-actuator

试图在我的 jhipster 应用程序中添加额外的健康指标.. 除了以下内容,我还需要做什么?

@Component
@RestControllerEndpoint(id="xxx")
public class CustomActuatorEndpoint {
    @GetMapping("/management/health/xxx")
    public @ResponseBody
    ResponseEntity customEndPoint(){
        return  new ResponseEntity<>("REST end point", HttpStatus.OK);
    }
}

0 个答案:

没有答案