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"
}
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