首页 > 解决方案 > 如何添加额外的健康指标?

问题描述

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

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

标签: jhipsterspring-actuator

解决方案


推荐阅读