Commit 0831e481 authored by Michael's avatar Michael

short manual how to add jvm metrics

parent 330a2dd3
# Short manual to expose Java metrics with Spring Boot for Prometheus
> Scope is Spring Boot 1.4. Since Spring Boot 2.0 [Micrometer]( is used Therefore, from version 2 small adjustements are needed
## Add actuators to the classpath with your POM.xml
<-- Actuator exposing prometheus friedly metrics -->
<-- For convinience activate a list of all actuators -->
## Activate actuators with environment variables
In your docker-compose.yml
# optional for being Spring Boot 2 compatible
# as the actuators are per default under /actuators there
## Check Results
- /actuators **lists all actuators**
- /actuators/prometheus **lists metrics ready for prometheus**
## Ressources
[prometheus-spring-boot-starter at Github]( and [prometheus-spring-boot-starter Blog](
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment