Hello Clay,

We do not have any auto-instrumentation for Spring Boot. The reason is that
Spring Boot ships with Micrometer built-in. Micrometer provides a lot of
useful out-of-the-box metrics, and it is easy to add custom metrics.

dependencies:

<dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
   <groupId>io.micrometer</groupId>
   <artifactId>micrometer-registry-prometheus</artifactId>
   <scope>runtime</scope>
</dependency>


application.properties

management.endpoints.web.exposure.include=prometheus

Scrape URL: http://localhost:8080/actuator/prometheus

I would recommend using Micrometer, as it ships with Spring Boot. If
there's any reason why that doesn't work for you, let me know.

Fabian

On Fri, Sep 9, 2022 at 9:36 AM Clay Vass <[email protected]> wrote:

> Hi all I am sure this gets asked alot, but was unable to find a good
> answer online to my question.
>
> Is the prometheus java client (https://github.com/prometheus/client_java)
> able to record & export metrics if I am measuring against a JVM application
> that depends on springboot 2.*?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/a0044a3a-13c8-4f59-88aa-efb8919196f7n%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/a0044a3a-13c8-4f59-88aa-efb8919196f7n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAPX310jupfW1vPyhmMEM%2B2RfahXm-Cxe4a5txEN%2B2sQBNC5WYw%40mail.gmail.com.

Reply via email to