moelholm / prometheus-spring-boot-starter

Spring Boot Starter for enabling a Prometheus actuator endpoint
54 stars 14 forks source link

apply it to Spring Boot 2.0 #7

Open runesr opened 6 years ago

runesr commented 6 years ago

Hi, are there any plans of applying it to the new Spring Boot 2.0 version. In the new version of Spring Boot the way of creating custom endpoints have changed.

nightswimmings commented 5 years ago

Isn't prometheus support built-in by default now in Spring Boot 2 actuators-starter? Just add:

<dependency>
    <groupId>io.micrometer</groupId>
    <artifactId>micrometer-registry-prometheus</artifactId>
</dependency>