Writing custom health indicators




Writing custom health indicators Knowing the state of the application that is running in production, especially in a large-scale distributed system, is just as (if not more) important as having … - Selection from Spring Boot 2.0 Cookbook - Second Edition [Book]


Writing custom health indicators. Spring Boot's Actuator allows you to write a custom health indicator for your application. The Actuator's default /health endpoint provides information about your application status and disk space as follows: { status: "UP", diskSpace: { status: "UP", total: 290391584768, free: 209125543936, threshold: 10485760 } }


Micronaut also has the abstract AbstractHealthIndicator class, which can be used as base class for writing custom health indicators. First, we must add the io.micronaut: ...


09-02-2016


 · Healthy people 2020 have set high priorities on health issues that pose threats to public health. Among the 26 leading health indicators, there is mental health topic whose indicators are suicides and adolescent who experience major depression episodes (MDEs) (Healthy People.gov. 2014).


20-08-2018


 · Micronaut also has the abstract AbstractHealthIndicator class that can be used as base class for writing custom health indicators. First we must add the io.micronaut:management dependency to our compile class path, like in the following example Gradle build file:


Endpoints here are info, health and many more. So you can add custom health check by using @Endpoint but it is much easier to do with HealthIndicator. You can find more information about custom health checks and custom endpoints in the spring boot documentation.