Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.15 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.15 KB

maven-java-monitoring-example

Repository to show monitoring of Spring Boot Actuator Health Check, Metrics Gathering

Pre-Reqs:

  • Maven (Tested on 3.8.5 using openjdk-17)
  • Java 17

Steps To Run:

  1. Clone the repository
git clone https://github.com/kahootali/maven-java-monitoring-example.git
cd maven-java-monitoring-example/
  1. Build and run the app using maven
mvn package  # it will create a target folder with the packaged jar
java -jar target/actuator-demo-0.0.1-SNAPSHOT.jar

Alternatively, you can run the app directly without packaging using maven directly.

mvn spring-boot:run

The app will start running at http://localhost:8080.

Explore Actuator Endpoints

All the actuator endpoints will be available at

Some of the endpoints like http://localhost:8080/slowApi/ are protected with Spring Security's HTTP Basic Authentication. You can use the username actuator and password actuator for http basic authentication.