Default metrics in Spring Boot (don't be that guy)

Published: 01 June 2020
on channel: Tom Gregory Tech
6,372
145

Tired of solving production issues through guesswork? Know exactly how your application is behaving by using the default metrics provided by the Spring Boot Actuator module.

Not many people know that Spring Boot comes with a load of metrics for monitoring things like request rate, response time, JVM behaviour, and more. In this video you'll discover how to enable all of this with a few lines of configuration. We cover the most important metrics you need to know about, as well as how to use them effectively, monitor them over time, and graph them with tools like Prometheus and Grafana.

Specifically, this video covers:

✅ What are Spring Boot Actuator and Micrometer
✅ How to enable them through your dependencies and application properties
✅ Inbound HTTP request metrics (total requests, request duration etc.)
✅ Outbound HTTP request metrics (RestTemplate, WebClient)
✅ JVM metrics (memory, garbage collection, threads)
✅ How to query and graph all the above over time using Prometheus

here's the accompanying GitHub repository containing everything you need to try out the examples in this video https://github.com/tkgregory/spring-b...
see this video in article format over on my blog https://cloudcasanova.com/spring-boot...
check out this Spring Boot documentation about the different types of metrics https://docs.spring.io/spring-boot/do...
here’s a dashboard which you can import into Grafana to neatly display many of the Spring Boot default metrics from this article https://grafana.com/grafana/dashboard...


Watch video Default metrics in Spring Boot (don't be that guy) online without registration, duration 16 minute 40 second in high quality. This video was added by user Tom Gregory Tech 01 June 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6,372 once and liked it 145 people.