resilience4j / resilience4j-spring-boot2-demo

A Spring Boot 2 demo which shows how to use the Resilience4j Spring Boot 2 Starter
Apache License 2.0
254 stars 189 forks source link

Unable to See Resilience4j Metrics in Prometheus Endpoint #76

Open kushanihansika opened 14 hours ago

kushanihansika commented 14 hours ago

I integrated Resilience4j into my Spring Boot application, but I can't seem to retrieve Resilience4j-specific metrics at the Prometheus endpoint. Here's my setup:

plugins { id 'java' id 'groovy' id 'jacoco' id 'maven-publish' id 'org.springframework.boot' version '3.3.4' id 'io.spring.dependency-management' version '1.1.6' id "org.sonarqube" version "4.0.0.2929" }

dependencies { implementation 'io.github.resilience4j:resilience4j-spring-boot2' implementation 'io.github.resilience4j:resilience4j-micrometer:2.0.2' implementation 'org.springframework.boot:spring-boot-starter-actuator' }

resilience4j: circuitbreaker: instances: backendService: slidingWindowSize: 10 failureRateThreshold: 50 slowCallRateThreshold: 50 slowCallDurationThreshold: 100ms recordExceptions:

management: endpoints: web: exposure: include: "*" endpoint: health: show-details: always

RobWin commented 12 hours ago

Hi, did you also add something like micrometer-registry-prometheus ?