0Pricing
API Gateway & Reverse Proxy (Nginx + Spring Cloud Gateway) · Lesson

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

  1. JWT Authentication & Authorization
  2. Distributed Tracing with Sleuth/Zipkin
  3. Centralized Configuration with Config Server
  4. Exposing Metrics with Actuator & Prometheus
← Back to API Gateway & Reverse Proxy (Nginx + Spring Cloud Gateway)