From 619b6081e72ccffa86ad1cb71949e15fb824c2b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=8F=84=EB=AA=A8?= Date: Thu, 29 Feb 2024 00:00:22 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20Prometheus,=20Grafana=EB=A5=BC=20?= =?UTF-8?q?=ED=86=B5=ED=95=9C=20=EB=AA=A8=ED=8B=B0=ED=84=B0=EB=A7=81=20?= =?UTF-8?q?=EA=B5=AC=EC=B6=95=20(#357)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: prometheus 의존성 추가 * chore: actuator prometheus 추가 --- build.gradle | 3 +++ src/main/resources/application-actuator.yml | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 797f81c8f..a551d4bb6 100644 --- a/build.gradle +++ b/build.gradle @@ -40,6 +40,9 @@ dependencies { // Actuator implementation 'org.springframework.boot:spring-boot-starter-actuator' + // Prometheus + implementation 'io.micrometer:micrometer-registry-prometheus' + // Spring Security implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.security:spring-security-test' diff --git a/src/main/resources/application-actuator.yml b/src/main/resources/application-actuator.yml index 7dd50e51c..df84edbba 100644 --- a/src/main/resources/application-actuator.yml +++ b/src/main/resources/application-actuator.yml @@ -6,7 +6,7 @@ management: endpoints: web: exposure: - include: health + include: health, prometheus base-path: /10mm-actuator jmx: exposure: @@ -15,3 +15,5 @@ management: endpoint: health: enabled: true + prometheus: + enabled: true