Demonstrates how to expose endpoints with Spring Security so they can be reached by metric-registrar
.
cd metric-registrar-examples/java-spring-security
./gradlew bootRun
cd metric-registrar-examples/java-spring-security
./gradlew build
cf push
/simple
- Returns OK; exercises built-in Micrometer metrics/high_latency
- a slow endpoint to simulate long-running requestscustom_metric
- increments thecustom_metric
counter/actuator/prometheus
- Prometheus endpoint for metrics
./gradlew test