Exposing Metrics with Actuator & Prometheus
Surface gateway health and route metrics through Spring Boot Actuator and scrape them with Prometheus for full observability.
Seeing Inside the Gateway
Tracing shows individual request journeys, but you also need aggregate metrics: request rates, error counts, latency. Spring Boot Actuator plus Micrometer expose these for the gateway.
Adding Actuator
The Actuator starter adds production-ready endpoints for health, info, and metrics.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>All lessons in this course
- JWT Authentication & Authorization
- Distributed Tracing with Sleuth/Zipkin
- Centralized Configuration with Config Server
- Exposing Metrics with Actuator & Prometheus