Spring Boot Actuator
September 10, 2021
M04 Q35 What are the Health Indicator statuses that are provided out of the box?
Spring Actuator provides following Health Indicator Statuses out of the box:
UP
- component or subsystem is functioning as expectedDOWN
- component or subsystem has suffered an unexpected failureOUT_OF_SERVICE
- component or subsystem has been taken out of service and should not be usedUNKNOWN
- component or subsystem is in an unknown state
Based on Health Indicator Statuses from above, Spring will also perform default mapping of status to HTTP Response Code with usage of HealthStatusHttpMapper
that follows this default configuration:
You can change default mapping with usage of management.health.status.http-mapping
property, for example: