Posts

Showing posts with the label Health Indicators

Register Custom Health Indicators In Spring Boot Application

Image
Hello everyone, Hope you are doing well. In this post, we will learn how to register custom health indicators in the Spring Boot application via Spring Actuator. A little bit of Background Spring Boot Actuator Spring Boot Actuator is a sub-project of Spring Boot. It adds several production-grade services to your application with little effort on your part. It is used to expose operational information about the running application — health, metrics, info, dump, env, etc. More Info -  https://docs.spring.io/spring-boot/docs/2.0.x/reference/html/production-ready.html HealthIndicator The Health indicator strategy interface. It is used to contribute Health to the results returned from the HealthEndpoint. More Info -  https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/actuate/health/HealthIndicator.html AbstractHealthIndicator Base HealthIndicator implementations that encapsulate the creation of Health instance and error handling. This implementat...