| Endpoint | Purpose |
|---|---|
/actuator/health |
App health |
/actuator/info |
App info |
/actuator/metrics |
Available metrics |
/actuator/prometheus |
Metrics for Prometheus |
/actuator/env |
Environment variables |
/actuator/beans |
Spring beans |
/actuator/threaddump |
Thread dump |
/actuator/loggers |
Logging levels |
Example response:
{
"status":"UP",
"components":{
"db":{
"status":"UP"
},
"diskSpace":{
"status":"UP"
}
}
}
Health Status Meaning
| Status | Meaning |
|---|---|
| UP | Healthy |
| DOWN | Not healthy |
| OUT_OF_SERVICE | Disabled |
| UNKNOWN | Cannot determine |
pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
application.yml