Okay i found the solution. I have added another line in application.properties
management.endpoints.web.expose=*
However, securing the actuator endoints is important
Read here:
https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-monitoring.html