← Spring Boot learning path
Spring Boot · Module 9 of 10

Actuator and observability

Monitor health, metrics and logs in production.

📖 Key ideas

  1. spring-boot-starter-actuator adds /actuator endpoints.
  2. /actuator/health shows if the app is up.
  3. Metrics via Micrometer to Prometheus and Grafana.
  4. Structured logging with SLF4J/Logback.
  5. Expose only safe endpoints publicly.
💡 Real-life example: Actuator is a car dashboard: speed, fuel and warning lights for your running app.
ActuatorProduction monitoring endpoints
/actuator/healthHealth status endpoint
MicrometerMetrics facade
SLF4JLogging API