We are using spring boot and with it we have only one rest service , we are receiving requests for that from a single client , but with so many calls , because of that 1 in every 12 requests are failing , how to find how many requests per second my spring boot receiving , is their any way to monitor this metric in production ?
can some one please help us ?
As you are using a Spring Boot related project, I would recommend using Springs actuator
package. Integrating this functionality is as easy as adding the new dependency to your project:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
with this enabled you have access to several new endpoints like /trace
, /metrics
, /trace
, /health
and much more.
For more information have a look at the official Spring documentation (https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-endpoints.html) or at the following blog post from Baeldung http://www.baeldung.com/spring-boot-actuators.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With