Developing Java Applications with Spring and Spring Boot
by Claudio Eduardo de Oliveira, Greg L. Turnquist, Alex Antonov
Emitting metrics
The previous recipe gave an overview of the capabilities provided by Spring Boot Actuators. We played with different management endpoints such as /info and /health and even created our own health metrics to add to the default set. However, besides the health status, there are a number of things that we, as developers and operations folks, want to be able to see and monitor on an ongoing basis, and just knowing that the uplink is functional is not good enough. We would also like to see the number of open sessions, concurrent requests to the application, latency, and so on. In this recipe, you will learn about the metric reporting facilities in Spring Boot as well as how to add our own metrics and some quick and simple ways ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access