From the course: Spring Boot 2.0 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Extending Actuator

Extending Actuator

From the course: Spring Boot 2.0 Essential Training

Start my 1-month free trial

Extending Actuator

- [Tutor] So now we'll take a look at actuator in Spring boot application, and how to not only enable it, but also to extend it. Let's open up our room-web-app. Let's go to our pom file, and we're going to add a dependency. Spring-boot-starter-actuator. The group is org.springframework.boot. Let's run Maven. So, now we're going to go to source main, resources and open up our application on properties file. We want to add a few properties here. So the first one is management.endpoints.web.exposure.include. And we're going to go ahead and include them all just so we can see them. Again in the real world, you wouldn't want to do that. Management.endpoint.health.roles and this is an important one. You can define who can see this. Everybody or specific groups. We're going to say is the USER role, 'cause that's where our user is, can see this. And then management details health.show-details, and we want to set this…

Contents