trying to add an additional health metric in my jhipster app.. what elase do I need to do other than the following ?
@Component
@RestControllerEndpoint(id="xxx")
public class CustomActuatorEndpoint {
@GetMapping("/management/health/xxx")
public @ResponseBody
ResponseEntity customEndPoint(){
return new ResponseEntity<>("REST end point", HttpStatus.OK);
}
}