Learn how to add metrics to the metrics endpoint.
- [Instructor] With Spring Boot 2.0…there was a major shift in the metric strategy,…and Spring is now integrated with Micrometer,…which is a facade on many popular metrics collection…and aggregation tools, including things like Datadog,…Prometheus, New Relic and the list goes on from there.…In addition with Spring Boot 2.0,…we have more than just gauges and counters.…Though those two values are definitely still there.…Now I'm not gonna focus on the Micrometer aspect…that is material for another course.…
I'm gonna focus on the Spring specific…metrics instrumentations that come out of the box…with Spring Boot Actuator.…Now we're gonna start by building some timing service calls…and this is a very popular and needed metrics collection…in real world applications where we need to know…how long a service call is actually taking.…So over here in our IDE we're gonna open up…our application.properties file,…in source, main, resources…and we are going to add a value…of management.metrics.web.server.auto-time-requests…and set it equal to true.…
AuthorFrank P Moley III
- Creating a Spring Boot application
- Configuring a Spring Boot app
- Leveraging profiles
- Packaging and running Spring Boot web apps
- Building a command-line application
- Using Spring Boot starters: Spring Data, Spring Security, and more
- Extending Spring Boot
- Using Spring Boot Actuator to monitor app health and other metrics
Skill Level Intermediate
What you need to know4m 14s
1. Boot Camp
2. Web Applications with Spring Boot
3. Command-Line Applications with Spring Boot
4. Using Spring Boot Starters
5. Extending Spring Boot
6. Extending Actuator
Next steps3m 1s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.