Fundamentals of Monitoring with Spring Boot (RWS - Module 8 - Lesson 1)





Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Jan 23, 2016

Learn all about monitoring your API and tracking good, useful metrics from the start, using Spring Boot actuators.

For the entire "REST With Spring" series: https://www.youtube.com/playlist?list...

This lesson is part of "REST With Spring" - Module 8 (Monitoring and API Metrics) - Lesson 1:

## Lesson Notes

We are going to use Spring Boot actuators to start tracking metrics and expose these via several endpoints:
- /info
- /health
- /metrics

# General Endpoint Configuration
We are also going to configure these endpoints via application.properties:
"endpoints.{endpointname}.{option}" - with the following options:
- id
- sensitive
- enabled

- ex: endpoints.health.sensitive=false

Other endpoint related options can be configured as well:
- management.context-path = actuators
- management.port = 8081

# The /info Endpoint Configuration
info.app.name = My App
info.build.version = @project.version@

Note how we are using the @@ syntax here to get the value of the property from the pom of the parent (after maven runs package)

# URLs for a local deployment
When you're deploying the sample application locally - you'll be able to hit the endpoints on the following URLs:

Note that the assumption here is that the deployment happens into a server running on port 8081 and the app will be deployed at the ROOT.

To learn more about monitoring a Spring REST API and how to further configure Spring Boot - check out the full course:



When autoplay is enabled, a suggested video will automatically play next.

Up next

to add this to Watch Later

Add to

Loading playlists...