Exporting metrics using simpleclient_spring_boot

152 views
Skip to first unread message

Kevin Moyse

unread,
Jan 17, 2023, 11:47:36 AM1/17/23
to Prometheus Users
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
Reply all
Reply to author
Forward
0 new messages