From bfdceaf8f2a5e449fe28a51b55601d1050ab7315 Mon Sep 17 00:00:00 2001 From: Jaewon Lee Date: Fri, 20 Sep 2024 14:08:14 +0900 Subject: [PATCH] =?UTF-8?q?Chore:=20Prometheus=20=EC=9D=98=EC=A1=B4?= =?UTF-8?q?=EC=84=B1=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle.kts | 2 ++ gradle/libs.versions.toml | 1 + src/main/resources/application.yml | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index fb8383b4..5a003476 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -65,6 +65,8 @@ dependencies { implementation(libs.resilience4j.spring.boot) + runtimeOnly(libs.micrometer.registry.prometheus) + testImplementation(libs.bundles.spring.boot.test) testImplementation(libs.bundles.testcontainers) testRuntimeOnly(libs.junit.platform.launcher) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 1e592648..43eb4b74 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -45,6 +45,7 @@ junit-platform-launcher = { group = "org.junit.platform", name = "junit-platform spring-cloud-starter-contract-stub-runner = { group = "org.springframework.cloud", name = "spring-cloud-starter-contract-stub-runner", version = "4.1.4" } caffeine = { group = "com.github.ben-manes.caffeine", name = "caffeine", version = "3.1.8" } +micrometer-registry-prometheus = { group = "io.micrometer", name = "micrometer-registry-prometheus", version = "1.13.4" } resilience4j-spring-boot = { group = "io.github.resilience4j", name = "resilience4j-spring-boot3", version = "2.2.0" } [bundles] diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 7eb49841..a7dc113b 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -51,7 +51,7 @@ management: endpoints: web: exposure: - include: health, info, circuitbreakers + include: health, info, prometheus, circuitbreakers health: circuitbreakers: enabled: true