Hello,
I'm using Spring boot :
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.1</version>

and dependencies
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient</artifactId>
<version>0.16.0</version>
</dependency>
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient_spring_boot</artifactId>
<version>0.16.0</version>
</dependency>

As soon as I add @EnablePrometheusEndpoint to my @SpringBootApplication

I get the following error at startup :
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to 
process import candidates for configuration class 
[com.apirtc.meet.CallsApplication]: Failed to introspect Class 
[io.prometheus.client.spring.boot.PrometheusEndpointConfiguration] from 
ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@5cb0d902]

What am I missing to properly export my metrics using SpringBoot ?

Thanks,
Kevin

-- 
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/9f1fdbb8-c162-4e84-9133-c1f59256641dn%40googlegroups.com.

Reply via email to