Skip to content

Latest commit

 

History

History

java-spring-security

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Java Example with Spring Security

Demonstrates how to expose endpoints with Spring Security so they can be reached by metric-registrar.

Running the app locally

cd metric-registrar-examples/java-spring-security
./gradlew bootRun

Push the app

cd metric-registrar-examples/java-spring-security
./gradlew build
cf push

Endpoints

  • /simple - Returns OK; exercises built-in Micrometer metrics
  • /high_latency - a slow endpoint to simulate long-running requests
  • custom_metric - increments the custom_metric counter
  • /actuator/prometheus - Prometheus endpoint for metrics

Running Tests

./gradlew test