From 1c847bfcd22a84be0a93422d73fe8987d88edb70 Mon Sep 17 00:00:00 2001 From: jxmen Date: Fri, 6 Sep 2024 15:16:15 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20spring=20actuator=20metrics=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20(#99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle.kts | 2 +- src/main/resources/application.yaml | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 4380121..11325a7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,7 +12,7 @@ plugins { } group = "dev.jxmen" -version = "1.3.8" +version = "1.3.9" java { sourceCompatibility = JavaVersion.VERSION_21 diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 77b7502..60bd8d6 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -106,7 +106,7 @@ management: endpoints: web: exposure: - include: prometheus, health, info + include: prometheus, health, info, metrics base-path: ${MANAGEMENT_ENDPOINTS_WEB_BASE_PATH} jmx: exposure: @@ -118,6 +118,8 @@ management: enabled: true prometheus: enabled: true + metrics: + enabled: true --- spring.config.activate.on-profile: prod @@ -149,7 +151,7 @@ management: endpoints: web: exposure: - include: prometheus, health, info + include: prometheus, health, info, metrics base-path: ${MANAGEMENT_ENDPOINTS_WEB_BASE_PATH} jmx: exposure: @@ -161,3 +163,5 @@ management: enabled: true prometheus: enabled: true + metrics: + enabled: true