Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 582 Bytes

File metadata and controls

34 lines (22 loc) · 582 Bytes

prometheus-training-spring-boot-example

This is a spring boot example project to show the prometheus client lib instrumentation in springboot

It consists of two spring boot applications

  • the skeleton for the lab in the source folder
  • the solution in the solution folder

Lab

Build

./mvnw clean package

Run

java -jar target/prometheus-training-spring-boot-example-0.0.1-SNAPSHOT.jar

Verify Prometheus Metrics

curl http://localhost:8080/actuator/prometheus

Custom Metric

curl http://localhost:8080/api