From 9b6cd00e4ec813fda324b3e2e547be7941ccb492 Mon Sep 17 00:00:00 2001 From: JavaNo0b <98101954+JavaNo0b@users.noreply.github.com> Date: Sat, 22 Mar 2025 14:35:24 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=AA=A8=EB=8B=88=ED=84=B0=EB=A7=81?= =?UTF-8?q?=EC=9D=84=20=EC=9C=84=ED=95=9C=20Micrometer,=20actuator,=20endp?= =?UTF-8?q?oint=20=EC=84=B8=ED=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 4 ++++ src/main/resources/application-prod.yml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/build.gradle b/build.gradle index fd85f0a..d837413 100644 --- a/build.gradle +++ b/build.gradle @@ -75,6 +75,10 @@ dependencies { // // Elastic Search // implementation 'org.springframework.boot:spring-boot-starter-data-elasticsearch' // implementation 'co.elastic.clients:elasticsearch-java' + + // monitoring + implementation 'org.springframework.boot:spring-boot-starter-actuator' + runtimeOnly 'io.micrometer:micrometer-registry-prometheus' } tasks.named('test') { diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 3e491ac..8aa14ce 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -69,3 +69,9 @@ logging: springframework.orm.jpa: DEBUG springframework.transaction: DEBUG springframework.jdbc.core: TRACE + +management: + endpoints: + web: + exposure: + include: health,info,metrics,prometheus \ No newline at end of file